diff --git a/features/step_definitions/web_steps.rb b/features/step_definitions/web_steps.rb index 640c13a..f691833 100644 --- a/features/step_definitions/web_steps.rb +++ b/features/step_definitions/web_steps.rb @@ -118,11 +118,7 @@ end Then /^(?:|I )should see "([^"]*)"(?: within "([^"]*)")?$/ do |text, selector| with_scope(selector) do - if page.respond_to? :should - page.should have_content(text) - else - assert page.has_content?(text) - end + expect(page).to have_content(text) end end -- libgit2 0.21.2