197
198
199
200
201
202
203
204
205
206
207
208
209
210
|
# File 'lib/clearance/shoulda_macros.rb', line 197
def should_display_a_sign_in_form
warn "[DEPRECATION] should_display_a_sign_in_form: not meant to be public, no longer used internally"
should 'display a "sign in" form' do
assert_select "form[action=#{session_path}][method=post]",
true, "There must be a form to sign in" do
assert_select "input[type=text][name=?]",
"session[email]", true, "There must be an email field"
assert_select "input[type=password][name=?]",
"session[password]", true, "There must be a password field"
assert_select "input[type=submit]", true,
"There must be a submit button"
end
end
end
|