external_credential.rb 455 B

12345678910111213141516171819
  1. FactoryBot.define do
  2. factory :external_credential do
  3. factory :facebook_credential do
  4. name { 'facebook' }
  5. credentials { { application_id: 123, application_secret: 123 } }
  6. end
  7. factory :twitter_credential do
  8. name { 'twitter' }
  9. credentials do
  10. { consumer_key: 123,
  11. consumer_secret: 123,
  12. oauth_token: 123,
  13. oauth_token_secret: 123 }
  14. end
  15. end
  16. end
  17. end