Sha256: 5d5b6732ef0547256514ea87362ef8d4a9de07e2b7eef4ccb5c2aae1d1e1c32c

Contents?: true

Size: 396 Bytes

Versions: 4

Compression:

Stored size: 396 Bytes

Contents

require 'spec_helper'
use_roles_strategy :many_roles

class User < ActiveRecord::Base    
  include Roles::ActiveRecord
  
  strategy :many_roles, :default
  valid_roles_are :admin, :guest, :user   
end

def api_migrate
  migrate('many_roles')
end

def api_fixture
  load 'fixtures/many_roles_setup.rb'
end

def api_name
  :many_roles
end

load 'roles_active_record/strategy/api_examples.rb'




Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
roles_active_record-0.3.4 spec/roles_active_record/strategy/multi/many_roles_spec.rb
roles_active_record-0.3.3 spec/roles_active_record/strategy/multi/many_roles_spec.rb
roles_active_record-0.3.2 spec/roles_active_record/strategy/multi/many_roles_spec.rb
roles_active_record-0.3.1 spec/roles_active_record/strategy/multi/many_roles_spec.rb