* 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
8 lines
213 B
Ruby
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
|