Sha256: 0b79dbecbe80a7693a59c66db38d4ebb267e05fd21f2d0d92f7af01a7d29bf2b

Contents?: true

Size: 302 Bytes

Versions: 5

Compression:

Stored size: 302 Bytes

Contents

require 'spec_helper'

use_roles_strategy :many_roles

class User
  include Mongoid::Document  
  include Roles::Mongoid 
  
  strategy :many_roles, :default
  role_class :role

  valid_roles_are :admin, :guest, :user
end

def api_name
  :many_roles
end

load 'roles_mongoid/strategy/api_examples.rb'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
roles_mongoid-0.3.6 spec/roles_mongoid/strategy/multi/many_roles_spec.rb
roles_mongoid-0.3.5 spec/roles_mongoid/strategy/multi/many_roles_spec.rb
roles_mongoid-0.3.4 spec/roles_mongoid/strategy/multi/many_roles_spec.rb
roles_mongoid-0.3.3 spec/roles_mongoid/strategy/multi/many_roles_spec.rb
roles_mongoid-0.3.2 spec/roles_mongoid/strategy/multi/many_roles_spec.rb