Sha256: 393aa2ddafd91ec2adf32e81e89c608be1c586e2b1cc27e1d4154abcf515190d

Contents?: true

Size: 499 Bytes

Versions: 13

Compression:

Stored size: 499 Bytes

Contents

FactoryGirl.define do

  sequence(:token) {|n| "ABCD#{n}" }

  factory :device_token, aliases: [:mock_token], :class => Notifiable::DeviceToken do
    provider :mock
    token
    app
  end
  
  factory :app, :class => Notifiable::App do
    sequence(:name) {|n| "App #{n}" }
  end
  
  factory :notification, :class => Notifiable::Notification do
    app
  end
  
  factory :notification_status, :class => Notifiable::NotificationStatus do
    notification
    status 0
    device_token
  end  
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
notifiable-rails-0.30.4 spec/support/factories.rb
notifiable-rails-0.30.3 spec/support/factories.rb
notifiable-rails-0.30.2 spec/support/factories.rb
notifiable-rails-0.30.1 spec/support/factories.rb
notifiable-rails-0.30.0 spec/support/factories.rb
notifiable-rails-0.29.0 spec/support/factories.rb
notifiable-rails-0.28.1 spec/support/factories.rb
notifiable-rails-0.28.0 spec/support/factories.rb
notifiable-rails-0.27.1 spec/support/factories.rb
notifiable-rails-0.27.0 spec/support/factories.rb
notifiable-rails-0.26.3 spec/support/factories.rb
notifiable-rails-0.26.1 spec/support/factories.rb
notifiable-rails-0.26.0 spec/support/factories.rb