Sha256: 736cfede41fe54ceb41f48bdb92d691ca87be3c9eb779db18e383219f804f83c

Contents?: true

Size: 250 Bytes

Versions: 24

Compression:

Stored size: 250 Bytes

Contents

require 'factory_girl'

FactoryGirl.define do
  factory :user, class: CASino::User do
    authenticator 'test'
    sequence(:username) do |n|
      "test#{n}"
    end
    extra_attributes({ fullname: "Test User", age: 15, roles: [:user] })
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
casino-4.1.2 spec/support/factories/user_factory.rb
casino-4.1.1 spec/support/factories/user_factory.rb
casino-4.1.0 spec/support/factories/user_factory.rb
casino-4.0.3 spec/support/factories/user_factory.rb
casino-4.0.2 spec/support/factories/user_factory.rb
casino-4.0.1 spec/support/factories/user_factory.rb
casino-4.0.0 spec/support/factories/user_factory.rb
casino-4.0.0.pre.2 spec/support/factories/user_factory.rb
casino-4.0.0.pre.1 spec/support/factories/user_factory.rb
casino-3.0.4 spec/support/factories/user_factory.rb
casino-2.0.7 spec/support/factories/user_factory.rb
casino-3.0.3 spec/support/factories/user_factory.rb
casino-3.0.2 spec/support/factories/user_factory.rb
casino-3.0.1 spec/support/factories/user_factory.rb
casino-3.0.0 spec/support/factories/user_factory.rb
casino-3.0.0.pre.2 spec/support/factories/user_factory.rb
casino-3.0.0.pre.1 spec/support/factories/user_factory.rb
casino-2.0.6 spec/support/factories/user_factory.rb
casino-2.0.5 spec/support/factories/user_factory.rb
casino-2.0.4 spec/support/factories/user_factory.rb