Sha256: 0ad288c3c351548596f7ac2328bc73138ea58cfc551acb0d3bb21c4473a720c6

Contents?: true

Size: 241 Bytes

Versions: 2

Compression:

Stored size: 241 Bytes

Contents

FactoryGirl.define do
  factory :oauth_user, :class => 'User' do
    before(:create) do |user, evaluator|
      user.oauth_callback = true
    end
    if User.devise_modules.include? :confirmable
      confirmed_at Time.now
    end
  end
end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
happy_seed-0.0.21 lib/generators/happy_seed/omniauth/templates/spec/factories/oauth.rb
happy_seed-0.0.21 lib/generators/happy_seed/simple_cms/templates/spec/factories/oauth.rb