diff --git a/spec/factories/ext_management_system.rb b/spec/factories/ext_management_system.rb index 6b0bdb119efd..1e27075dc4a8 100644 --- a/spec/factories/ext_management_system.rb +++ b/spec/factories/ext_management_system.rb @@ -28,6 +28,12 @@ create_list :storage, evaluator.storage_count, :ext_management_system => ems end end + + trait :with_invalid_authentication do + after(:create) do |x| + x.authentications << FactoryGirl.create(:authentication, :resource => x, :status => "invalid") + end + end end # Intermediate classes