Skip to content

Commit

Permalink
Adding factory to ExtManagementSystem with invalid credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasgabriel committed Jan 10, 2018
1 parent 79d25e3 commit 988204b
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.build(:authentication, :resource => x, :status => "invalid")
end
end
end

# Intermediate classes
Expand Down

0 comments on commit 988204b

Please sign in to comment.