diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-12 12:49:34 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-26 14:01:40 -0500 |
commit | 5ba79f49a45041f5a805de00a1f737ade5ac5832 (patch) | |
tree | 1b70d876e54ec7154d2ceee86b149cc9cacf46e8 /spec/features | |
parent | 7f263ca1de525e44bea1f97a22d95ad947848128 (diff) | |
download | gitlab-ce-5ba79f49a45041f5a805de00a1f737ade5ac5832.tar.gz |
Syntax and code improvements
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 |