From 2b231453505182d6be244d234cba58b5afc164cc Mon Sep 17 00:00:00 2001 From: Douglas Gabriel Date: Tue, 9 Jan 2018 17:26:38 -0300 Subject: [PATCH] Adding factory to ExtManagementSystem with invalid credentials --- spec/factories/ext_management_system.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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