Sha256: 3b6eeb7b0aa6dee7585ae083fd75f28ec45853e59982420a688d5f2af517fe29

Contents?: true

Size: 562 Bytes

Versions: 7

Compression:

Stored size: 562 Bytes

Contents

FactoryGirl.define do
  
  
  factory :pi_pt, :class => UserProfile do
    
    lang 'pt'
    after :create do |p|
      p.user User.where( :username => 'piousbox' ).first
    end
    
  end
  
  factory :pi_en, :class => UserProfile do
    lang 'en'
    education 'pi_en Education'
    
    after :create do |p|
      p.user User.where( :username => 'piousbox' ).first
    end
    
  end
  
  factory :pi_ru, :class => UserProfile do
    
    lang 'ru'
    after :create do |p|
      p.user User.where( :username => 'piousbox' ).first
    end
    
  end
  
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
ish_lib-0.0.8 spec/factories/user_profiles.rb
ish_lib_engine-0.0.5 spec/factories/user_profiles.rb
ish_lib_engine-0.0.3 spec/factories/user_profiles.rb
ish_lib_engine-0.0.2 spec/factories/user_profiles.rb
ish_lib_manager-0.0.1 test/dummy/spec/factories/user_profiles.rb
ish_lib_engine-0.0.1 spec/factories/user_profiles.rb
ish_lib-0.0.3 spec/factories/user_profiles.rb