features/step_definitions/engine/clearance_steps.rb in clearance-0.10.3.2 vs features/step_definitions/engine/clearance_steps.rb in clearance-0.10.4
- old
+ new
@@ -6,9 +6,17 @@
Then /^I should see an error message$/ do
Then %{I should see "error prohibited"}
end
+Then /^I should see an email field$/ do
+ if page.respond_to?(:should)
+ page.should have_css("input[type='email']")
+ else
+ assert page.has_css("input[type='email']")
+ end
+end
+
# Database
Given /^no user exists with an email of "(.*)"$/ do |email|
assert_nil User.find_by_email(email)
end