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
1908a71e51da
Commit
652c15b5
authored
Apr 25, 2015
by
Robert Speicher
Browse files
Don't use capybara-screenshot in CI environments
parent
fc7099646f86
Changes
2
Hide whitespace changes
Inline
Side-by-side
features/support/capybara.rb
View file @
1908a71e
...
...
@@ -16,7 +16,9 @@
Capybara
.
default_wait_time
=
timeout
Capybara
.
ignore_hidden_elements
=
false
require
'capybara-screenshot/spinach'
unless
ENV
[
'CI'
]
||
ENV
[
'CI_SERVER'
]
require
'capybara-screenshot/spinach'
# Keep only the screenshots generated from the last failing test suite
Capybara
::
Screenshot
.
prune_strategy
=
:keep_last_run
# Keep only the screenshots generated from the last failing test suite
Capybara
::
Screenshot
.
prune_strategy
=
:keep_last_run
end
spec/support/capybara.rb
View file @
1908a71e
...
...
@@ -13,7 +13,9 @@
Capybara
.
default_wait_time
=
timeout
Capybara
.
ignore_hidden_elements
=
true
require
'capybara-screenshot/rspec'
unless
ENV
[
'CI'
]
||
ENV
[
'CI_SERVER'
]
require
'capybara-screenshot/rspec'
# Keep only the screenshots generated from the last failing test suite
Capybara
::
Screenshot
.
prune_strategy
=
:keep_last_run
# Keep only the screenshots generated from the last failing test suite
Capybara
::
Screenshot
.
prune_strategy
=
:keep_last_run
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