diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-06-12 00:44:13 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-12 05:12:09 -0400 |
commit | 69bbc413fec7aa4168d9ff12df5421674db90032 (patch) | |
tree | 215a7f16d4630067bf4863d8d6f992fcac23969e /features/steps/shared/note.rb | |
parent | b07cf1182f78c5c46edbfa0fde668dd75ae47e05 (diff) | |
download | gitlab-ce-69bbc413fec7aa4168d9ff12df5421674db90032.tar.gz |
Update all `should`-style syntax to `expect` in features
Diffstat (limited to 'features/steps/shared/note.rb')
-rw-r--r-- | features/steps/shared/note.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/features/steps/shared/note.rb b/features/steps/shared/note.rb index 2f66e61b214..59dca1db706 100644 --- a/features/steps/shared/note.rb +++ b/features/steps/shared/note.rb @@ -40,7 +40,7 @@ module SharedNote end step 'I should not see a comment saying "XML attached"' do - page.should_not have_css(".note") + expect(page).not_to have_css(".note") end step 'I should not see the cancel comment button' do @@ -70,13 +70,13 @@ module SharedNote step 'I should see a comment saying "XML attached"' do within(".note") do - page.should have_content("XML attached") + expect(page).to have_content("XML attached") end end step 'I should see an empty comment text field' do within(".js-main-target-form") do - page.should have_field("note[note]", with: "") + expect(page).to have_field("note[note]", with: "") end end @@ -101,7 +101,7 @@ module SharedNote step 'I should see comment "XML attached"' do within(".note") do - page.should have_content("XML attached") + expect(page).to have_content("XML attached") end end @@ -117,8 +117,8 @@ module SharedNote step 'The comment with the header should not have an ID' do within(".note-body > .note-text") do - page.should have_content("Comment with a header") - page.should_not have_css("#comment-with-a-header") + expect(page).to have_content("Comment with a header") + expect(page).not_to have_css("#comment-with-a-header") end end @@ -135,7 +135,7 @@ module SharedNote step 'I should see +1 in the description' do within(".note") do - page.should have_content("+1 Awesome!") + expect(page).to have_content("+1 Awesome!") end end end |