Commit ab48799c69148fe346c4400826993bf3be38110d

Authored by Antonio Terceiro
1 parent 9049f9e3

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,11 +118,7 @@ end
118 118
119 Then /^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/ do |text, selector| 119 Then /^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/ do |text, selector|
120 with_scope(selector) do 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 end 122 end
127 end 123 end
128 124