features/step_definitions/accessor_steps.rb in page-object-1.0.3 vs features/step_definitions/accessor_steps.rb in page-object-1.1.0
- old
+ new
@@ -4,9 +4,13 @@
Then /^the text should be "([^\"]*)"$/ do |expected_text|
@text.should == expected_text
end
+Then /^the text should include "([^\"]*)"$/ do |expected_text|
+ expect(@text).to include expected_text
+end
+
Then /^I should be on the success page$/ do
@page.text.should include 'Success'
@page.title.should == 'Success'
end