diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-07 20:52:54 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-26 22:01:40 +0300 |
commit | 89df29e09f1ed31e9d2b0b8c1791be41641da04d (patch) | |
tree | 9e608d338371ca22ed8eb60be1b255f3a4d92ff1 /spec/features | |
parent | 5d5df26ab1b65b094eaa2ca2ca6db49b6d8530ea (diff) |
Use click_link
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/merge_requests/toggle_whitespace_changes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/merge_requests/toggle_whitespace_changes.rb b/spec/features/merge_requests/toggle_whitespace_changes.rb index 1d7981d9fb5..a3c02e6c55a 100644 --- a/spec/features/merge_requests/toggle_whitespace_changes.rb +++ b/spec/features/merge_requests/toggle_whitespace_changes.rb @@ -15,7 +15,7 @@ feature 'Toggle Whitespace Changes', js: true, feature: true do describe 'clicking "Hide whitespace changes" button' do it 'should hide whitespace changes' do - find('a', text: "Hide whitespace changes").click + click_link "Hide whitespace changes" expect(page).to have_content "Show whitespace changes" end end |