From ab48799c69148fe346c4400826993bf3be38110d Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 24 Nov 2015 19:52:03 -0200 Subject: [PATCH] cucumber: remove deprecation warnings from test logs --- features/step_definitions/web_steps.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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