Sha256: f98f3bd824f733dccb39ba72e9b12970377758220037803dc8a104f86ced5caf

Contents?: true

Size: 286 Bytes

Versions: 6

Compression:

Stored size: 286 Bytes

Contents

require 'spec_helper'

use_roles_strategy :role_string

class User
  include Mongoid::Document  
  include Roles::Mongoid 
  
  strategy :role_string, :default

  valid_roles_are :admin, :guest, :user
end

def api_name
  :role_string
end

load 'roles_mongoid/strategy/api_examples.rb'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
roles_mongoid-0.3.6 spec/roles_mongoid/strategy/single/role_string_spec.rb
roles_mongoid-0.3.5 spec/roles_mongoid/strategy/single/role_string_spec.rb
roles_mongoid-0.3.4 spec/roles_mongoid/strategy/single/role_string_spec.rb
roles_mongoid-0.3.3 spec/roles_mongoid/strategy/single/role_string_spec.rb
roles_mongoid-0.3.2 spec/roles_mongoid/strategy/single/role_string_spec.rb
roles_mongoid-0.3.1 spec/roles_mongoid/strategy/single/role_string_spec.rb