Sha256: 6ea825fcdf3e75b961a8fdbceb8b309c97543ff8e918ec4ced27775f305580b3

Contents?: true

Size: 287 Bytes

Versions: 4

Compression:

Stored size: 287 Bytes

Contents

require "machinist/active_record"
require "sham"
require "faker"

Sham.define do
  login { Faker::Name.first_name.downcase }
  name { ['administrator', 'moderator', 'editor', 'uploader'].rand }
end

User.blueprint do
  login { Sham.login }
end

Role.blueprint do
  name { Sham.name }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
objectreload-roles-0.1.4 test/blueprints.rb
objectreload-roles-0.1.2 test/blueprints.rb
objectreload-roles-0.1.1 test/blueprints.rb
objectreload-roles-0.1.0 test/blueprints.rb