BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
659ec83b
Commit
659ec83b
authored
Feb 15, 2018
by
Sean McGivern
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ce-rc/move-more-ee-only-spec-files' into 'master'
Port some changes from gitlab-ee!4532 back to CE See merge request gitlab-org/gitlab-ce!17120
parents
2b331369
d73458bb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
env.rb
features/support/env.rb
+4
-3
factory_bot.rb
spec/support/factory_bot.rb
+0
-0
fixture_helpers.rb
spec/support/fixture_helpers.rb
+4
-4
No files found.
features/support/env.rb
View file @
659ec83b
...
...
@@ -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 @
659ec83b
File moved
spec/support/fixture_helpers.rb
View file @
659ec83b
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