Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
bd354b69405f
Unverified
Commit
b5d5da7b
authored
Nov 02, 2017
by
Mike Greiling
Browse files
add InspectRequests helper automatically to :js tests
parent
b1fef9f31067
Changes
4
Hide whitespace changes
Inline
Side-by-side
spec/features/projects/environments/environment_spec.rb
View file @
bd354b69
require
'spec_helper'
feature
'Environment'
do
include
InspectRequests
given
(
:project
)
{
create
(
:project
)
}
given
(
:user
)
{
create
(
:user
)
}
given
(
:role
)
{
:developer
}
...
...
spec/features/projects/jobs_spec.rb
View file @
bd354b69
...
...
@@ -2,8 +2,6 @@
require
'tempfile'
feature
'Jobs'
do
include
InspectRequests
let
(
:user
)
{
create
(
:user
)
}
let
(
:user_access_level
)
{
:developer
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
...
...
spec/features/snippets/user_creates_snippet_spec.rb
View file @
bd354b69
...
...
@@ -2,7 +2,6 @@
feature
'User creates snippet'
,
:js
do
include
DropzoneHelper
include
InspectRequests
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/spec_helper.rb
View file @
bd354b69
...
...
@@ -50,6 +50,7 @@
config
.
include
SearchHelpers
,
type: :feature
config
.
include
CookieHelper
,
:js
config
.
include
InputHelper
,
:js
config
.
include
InspectRequests
,
:js
config
.
include
WaitForRequests
,
:js
config
.
include
StubConfiguration
config
.
include
EmailHelpers
,
:mailer
,
type: :mailer
...
...
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