Commit ab48799c69148fe346c4400826993bf3be38110d
1 parent
9049f9e3
Exists in
master
and in
20 other branches
cucumber: remove deprecation warnings from test logs
Showing
1 changed file
with
1 additions
and
5 deletions
Show diff stats
features/step_definitions/web_steps.rb
... | ... | @@ -118,11 +118,7 @@ end |
118 | 118 | |
119 | 119 | Then /^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/ do |text, selector| |
120 | 120 | with_scope(selector) do |
121 | - if page.respond_to? :should | |
122 | - page.should have_content(text) | |
123 | - else | |
124 | - assert page.has_content?(text) | |
125 | - end | |
121 | + expect(page).to have_content(text) | |
126 | 122 | end |
127 | 123 | end |
128 | 124 | ... | ... |