diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-30 01:58:01 +0400 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2015-01-02 02:20:19 +0300 |
commit | 67b06e7a9b54e39b2f104079dfb293645d8352c7 (patch) | |
tree | 4fecaa461f1cd48c27304f71550fed3c0cefe84e /features/steps/shared | |
parent | ac1584249c262e447a6360734597fa17fe077718 (diff) |
Change always passing visible true tests to false.
Diffstat (limited to 'features/steps/shared')
-rw-r--r-- | features/steps/shared/diff_note.rb | 4 | ||||
-rw-r--r-- | features/steps/shared/note.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/features/steps/shared/diff_note.rb b/features/steps/shared/diff_note.rb index 28964d54a8f..510e0f0f938 100644 --- a/features/steps/shared/diff_note.rb +++ b/features/steps/shared/diff_note.rb @@ -80,7 +80,7 @@ module SharedDiffNote step 'I should not see the diff comment text field' do within(diff_file_selector) do - page.should have_css(".js-note-text", visible: false) + expect(find('.js-note-text')).not_to be_visible end end @@ -115,7 +115,7 @@ module SharedDiffNote end step 'I should see add a diff comment button' do - page.should have_css(".js-add-diff-note-button", visible: false) + page.should have_css('.js-add-diff-note-button', visible: true) end step 'I should see an empty diff comment form' do diff --git a/features/steps/shared/note.rb b/features/steps/shared/note.rb index 17adec3eda1..625bcc0b266 100644 --- a/features/steps/shared/note.rb +++ b/features/steps/shared/note.rb @@ -64,7 +64,7 @@ module SharedNote step 'I should not see the comment text field' do within(".js-main-target-form") do - page.should have_css(".js-note-text", visible: false) + expect(find('.js-note-text')).not_to be_visible end end |