Sha256: de3461ae50740581d90ef51b8842bf89aff6ef4c176f7184b9a818087c006493

Contents?: true

Size: 275 Bytes

Versions: 10

Compression:

Stored size: 275 Bytes

Contents

require 'spec_helper'

use_roles_strategy :role_string

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

def api_name
  :role_string
end

load 'roles_mongoid/strategy/api_examples.rb'

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
roles_mongoid-0.4.8 spec/roles_mongoid/strategy/single/role_string_spec.rb
roles_mongoid_zhd-0.4.8 spec/roles_mongoid/strategy/single/role_string_spec.rb
roles_mongoid-0.4.7 spec/roles_mongoid/strategy/single/role_string_spec.rb
roles_mongoid-0.4.6 spec/roles_mongoid/strategy/single/role_string_spec.rb
roles_mongoid-0.4.5 spec/roles_mongoid/strategy/single/role_string_spec.rb
roles_mongoid-0.4.4 spec/roles_mongoid/strategy/single/role_string_spec.rb
roles_mongoid-0.4.3 spec/roles_mongoid/strategy/single/role_string_spec.rb
roles_mongoid-0.4.2 spec/roles_mongoid/strategy/single/role_string_spec.rb
roles_mongoid-0.4.1 spec/roles_mongoid/strategy/single/role_string_spec.rb
roles_mongoid-0.4.0 spec/roles_mongoid/strategy/single/role_string_spec.rb