assert_template "login"
assert_select "span.username", false
- assert_select "div.flash.error", /your account has been suspended/
+ assert_select "div.flash.error", /your account has been suspended/ do
+ assert_select "a[href='mailto:openstreetmap@example.com']", "webmaster"
+ end
end
def test_login_email_password_suspended_upcase
assert_template "login"
assert_select "span.username", false
- assert_select "div.flash.error", /your account has been suspended/
+ assert_select "div.flash.error", /your account has been suspended/ do
+ assert_select "a[href='mailto:openstreetmap@example.com']", "webmaster"
+ end
end
def test_login_email_password_suspended_titlecase
assert_template "login"
assert_select "span.username", false
- assert_select "div.flash.error", /your account has been suspended/
+ assert_select "div.flash.error", /your account has been suspended/ do
+ assert_select "a[href='mailto:openstreetmap@example.com']", "webmaster"
+ end
end
def test_login_email_password_blocked
assert_template "login"
assert_select "span.username", false
- assert_select "div.flash.error", /your account has been suspended/
+ assert_select "div.flash.error", /your account has been suspended/ do
+ assert_select "a[href='mailto:openstreetmap@example.com']", "webmaster"
+ end
end
def test_login_username_password_suspended_upcase
assert_template "login"
assert_select "span.username", false
- assert_select "div.flash.error", /your account has been suspended/
+ assert_select "div.flash.error", /your account has been suspended/ do
+ assert_select "a[href='mailto:openstreetmap@example.com']", "webmaster"
+ end
end
def test_login_username_password_suspended_downcase
assert_template "login"
assert_select "span.username", false
- assert_select "div.flash.error", /your account has been suspended/
+ assert_select "div.flash.error", /your account has been suspended/ do
+ assert_select "a[href='mailto:openstreetmap@example.com']", "webmaster"
+ end
end
def test_login_username_password_blocked