features/step_definitions/web_steps.rb in refinerycms-testing-0.9.9.4 vs features/step_definitions/web_steps.rb in refinerycms-testing-0.9.9.5
- old
+ new
@@ -193,10 +193,10 @@
end
Then /^(?:|I )should be on (.+)$/ do |page_name|
current_path = URI.parse(current_url).path
if current_path.respond_to? :should
- current_path.should == path_to(page_name)
+ path_to(page_name).should == current_path
else
assert_equal path_to(page_name), current_path
end
end