Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d73458bb
Commit
d73458bb
authored
Feb 14, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port some changes from gitlab-ee!4532 back to CE
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
dd633bc1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
features/support/env.rb
features/support/env.rb
+4
-3
spec/support/factory_bot.rb
spec/support/factory_bot.rb
+0
-0
spec/support/fixture_helpers.rb
spec/support/fixture_helpers.rb
+4
-4
No files found.
features/support/env.rb
View file @
d73458bb
...
...
@@ -20,15 +20,16 @@ Dir["#{Rails.root}/features/steps/shared/*.rb"].each { |file| require file }
Spinach
.
hooks
.
before_run
do
include
RSpec
::
Mocks
::
ExampleMethods
include
ActiveJob
::
TestHelper
include
FactoryBot
::
Syntax
::
Methods
include
GitlabRoutingHelper
RSpec
::
Mocks
.
setup
TestEnv
.
init
(
mailer:
false
)
# skip pre-receive hook check so we can use
# web editor and merge
TestEnv
.
disable_pre_receive
include
FactoryBot
::
Syntax
::
Methods
include
GitlabRoutingHelper
end
Spinach
.
hooks
.
after_scenario
do
|
scenario_data
,
step_definitions
|
...
...
spec/support/factory_
girl
.rb
→
spec/support/factory_
bot
.rb
View file @
d73458bb
File moved
spec/support/fixture_helpers.rb
View file @
d73458bb
module
FixtureHelpers
def
fixture_file
(
filename
)
def
fixture_file
(
filename
,
dir:
''
)
return
''
if
filename
.
blank?
File
.
read
(
expand_fixture_path
(
filename
))
File
.
read
(
expand_fixture_path
(
filename
,
dir:
dir
))
end
def
expand_fixture_path
(
filename
)
File
.
expand_path
(
Rails
.
root
.
join
(
'spec/fixtures/
'
,
filename
))
def
expand_fixture_path
(
filename
,
dir:
''
)
File
.
expand_path
(
Rails
.
root
.
join
(
dir
,
'spec'
,
'fixtures
'
,
filename
))
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment