diff options
author | Sean McGivern <sean@gitlab.com> | 2016-07-06 14:36:39 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2016-07-08 15:53:17 +0300 |
commit | 90a6be190feea0966e9ed9b6731d930bcff32d68 (patch) | |
tree | c653fca853b4edfccdb078deca56f652f7b2768a /spec/support | |
parent | b8d3016abbfeaa0658216a9d21138435f2379e38 (diff) |
Ensure only renderable text diffs are collapsed
Other diffs (those that are too large to render anyway, image diffs,
diffs suppressed by .gitattributes) should be rendered immediately.
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/capybara_helpers.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/support/capybara_helpers.rb b/spec/support/capybara_helpers.rb index 9b5c3065eed..b57a3493aff 100644 --- a/spec/support/capybara_helpers.rb +++ b/spec/support/capybara_helpers.rb @@ -27,6 +27,14 @@ module CapybaraHelpers end end end + + # Refresh the page. Calling `visit current_url` doesn't seem to work consistently. + # + def refresh + url = current_url + visit 'about:blank' + visit url + end end RSpec.configure do |config| |