[Git][noosfero/noosfero][master] cucumber: remove deprecation warnings from test logs

Antonio Terceiro gitlab at mg.gitlab.com
Tue Nov 24 19:52:49 BRST 2015


Antonio Terceiro pushed to branch master at Noosfero / noosfero


Commits:
ab48799c by Antonio Terceiro at 2015-11-24T19:52:03Z
cucumber: remove deprecation warnings from test logs

- - - - -


1 changed file:

- features/step_definitions/web_steps.rb


Changes:

=====================================
features/step_definitions/web_steps.rb
=====================================
--- 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
 



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/ab48799c69148fe346c4400826993bf3be38110d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20151124/027166f1/attachment.html>


More information about the Noosfero-dev mailing list