diff options
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/merge_requests/toggle_whitespace_changes.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/features/merge_requests/toggle_whitespace_changes.rb b/spec/features/merge_requests/toggle_whitespace_changes.rb index bf4fd5289d1..0f98737b700 100644 --- a/spec/features/merge_requests/toggle_whitespace_changes.rb +++ b/spec/features/merge_requests/toggle_whitespace_changes.rb @@ -9,13 +9,14 @@ feature 'Toggle Whitespace Changes', js: true, feature: true do end it 'has a button to toggle whitespace changes' do - expect(page).to have_content "Hide whitespace changes" + expect(page).to have_content 'Hide whitespace changes' end describe 'clicking "Hide whitespace changes" button' do it 'toggles the "Hide whitespace changes" button' do - click_link "Hide whitespace changes" - expect(page).to have_content "Show whitespace changes" + click_link 'Hide whitespace changes' + + expect(page).to have_content 'Show whitespace changes' end end end |