transferred Code Ocean from original repository to GitHub
This commit is contained in:
12
spec/factories/consumer.rb
Normal file
12
spec/factories/consumer.rb
Normal file
@ -0,0 +1,12 @@
|
||||
FactoryGirl.define do
|
||||
factory :consumer do
|
||||
name 'openHPI'
|
||||
oauth_key { SecureRandom.hex }
|
||||
oauth_secret { SecureRandom.hex }
|
||||
singleton_consumer
|
||||
end
|
||||
|
||||
trait :singleton_consumer do
|
||||
initialize_with { Consumer.where(name: name).first_or_create }
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user