docbrown/spec/factories/devices.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
213 B
Ruby

FactoryBot.define do
factory :device do
association :user, strategy: :create
association :consumer_app, strategy: :create
sequence(:token) { |n| "unique_token_#{n}" }
platform { :ios }
end
end