docbrown/spec/factories/consumer_apps.rb
rhymes cf9f6094cd
Have specs run without Redis and refactor ConsumerApp and Device (#13647)
* Add fakeredis gem

* Mock Pusher::PushNotifications in specs

* Remove Redis from Travis

* Add Android tests to ConsumerApp specs

* Use mock for push notification tests and refactor ConsumerApp and Device code

* Fix remaining broken specs

* Use symbols

* Cleanup rpush helpers

* Pusher::PushNotifications is no more

* Use human friendly platform in Admin::ConsumerApps index page
2021-05-07 08:03:16 +02:00

8 lines
219 B
Ruby

FactoryBot.define do
factory :consumer_app do
auth_key { Faker::Alphanumeric.alpha(number: 10) }
active { true }
platform { :ios }
app_bundle { Faker::Internet.domain_name(subdomain: true) }
end
end