Add rspec and request tests

This commit is contained in:
maddiebaka
2023-10-13 19:42:17 -04:00
parent c6fac7583d
commit 73630643ac
12 changed files with 292 additions and 1 deletions

6
spec/factories/users.rb Normal file
View File

@@ -0,0 +1,6 @@
FactoryBot.define do
factory :user do
sequence(:username) { |n| "test-#{n.to_s.rjust(3, "0")}@sample.com" }
password { "12345678" }
end
end