Skip to content

Commit

Permalink
Merge pull request #16781 from douglasgabriel/add_factory_ems_ph_with…
Browse files Browse the repository at this point in the history
…_invalid_credentials

Adding factory to ExtManagementSystem with invalid credentials
  • Loading branch information
bdunne authored Jan 10, 2018
2 parents cab9cf9 + 49ec4be commit c025d68
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/factories/ext_management_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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, :status => "invalid")
end
end
end

# Intermediate classes
Expand Down

0 comments on commit c025d68

Please sign in to comment.