tests: fix broken tests.

This commit is contained in:
evazion
2020-08-05 12:41:17 -05:00
parent 56a4e58510
commit e31afd0827
3 changed files with 9 additions and 5 deletions

View File

@@ -34,10 +34,12 @@ class EmailsControllerTest < ActionDispatch::IntegrationTest
context "for a user without an email address" do
should "render" do
@user.email_address.destroy!
@user.reload_email_address
get_auth edit_user_email_path(@user), @user
assert_equal false, @user.email_address.present?
assert_response :success
assert_select "h1", text: "Add Email"
end
end