Skip to content

Commit

Permalink
Add missing speaker trait
Browse files Browse the repository at this point in the history
  • Loading branch information
fosterfarrell9 committed Sep 5, 2024
1 parent 3df001b commit fae9da5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/factories/vouchers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
role { :teacher }
end

trait :speaker do
role { :speaker }
end

trait :expired do
after(:create) do |voucher|
voucher.update(expires_at: 1.day.ago)
Expand Down

0 comments on commit fae9da5

Please sign in to comment.