login_controller spec'd
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Tobias Kneuker 2022-10-05 17:53:10 +02:00
parent 6cc9a0bb49
commit 27b84df003
2 changed files with 82 additions and 0 deletions

15
spec/factories/invite.rb Normal file
View file

@ -0,0 +1,15 @@
require 'factory_bot'
FactoryBot.define do
factory :invite do
user { create :user }
group { create :group }
email { Faker::Internet.email }
factory :expired_invite do
after :create do |invite|
invite.update_column(:expires_at, Time.now.yesterday)
end
end
end
end