Added tests for Credentials

Removed routes from credentials that aren't used along with controller actions
This commit is contained in:
2024-05-14 14:54:32 +01:00
parent 5885620d50
commit ae7846e46e
5 changed files with 52 additions and 21 deletions

View File

@@ -19,7 +19,7 @@ class CredentialTest < ActiveSupport::TestCase
end
test "domain added to name" do
@c = Credential.new(email: "jez", password: "1234567&ab", domain_id: domains(:one).id)
@c = Credential.new(email: "jez@#{domains(:one).domain}", password: "1234567&ab", domain_id: domains(:one).id)
assert @c.save
end
end