DubiousProcedure: improve spec
This commit is contained in:
parent
9f06308dbd
commit
c00f56d454
2 changed files with 8 additions and 2 deletions
|
@ -119,6 +119,12 @@ FactoryBot.define do
|
|||
end
|
||||
end
|
||||
|
||||
trait :whitelisted do
|
||||
after(:build) do |procedure, _evaluator|
|
||||
procedure.update(whitelisted_at: DateTime.now)
|
||||
end
|
||||
end
|
||||
|
||||
trait :with_notice do
|
||||
after(:create) do |procedure, _evaluator|
|
||||
procedure.notice.attach(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue