Sha256: 545ddd0b148d2a3a4f87d7a82668cb7705bf4b1b2950ae8cc4eb6a66748c1025

Contents?: true

Size: 256 Bytes

Versions: 9

Compression:

Stored size: 256 Bytes

Contents

require 'spec_helper'

class Role
end

class User
  include Mongoid::Document  
  include Roles::Mongoid 
  
  strategy :many_roles
  valid_roles_are :admin, :guest, :user
end

def api_name
  :many_roles
end

load 'roles_mongoid/strategy/api_examples.rb'

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
roles_mongoid-0.4.8 spec/roles_mongoid/strategy/multi/many_roles_spec.rb
roles_mongoid_zhd-0.4.8 spec/roles_mongoid/strategy/multi/many_roles_spec.rb
roles_mongoid-0.4.7 spec/roles_mongoid/strategy/multi/many_roles_spec.rb
roles_mongoid-0.4.6 spec/roles_mongoid/strategy/multi/many_roles_spec.rb
roles_mongoid-0.4.5 spec/roles_mongoid/strategy/multi/many_roles_spec.rb
roles_mongoid-0.4.4 spec/roles_mongoid/strategy/multi/many_roles_spec.rb
roles_mongoid-0.4.3 spec/roles_mongoid/strategy/multi/many_roles_spec.rb
roles_mongoid-0.4.2 spec/roles_mongoid/strategy/multi/many_roles_spec.rb
roles_mongoid-0.4.1 spec/roles_mongoid/strategy/multi/many_roles_spec.rb