Sha256: ce3a54d9e5f5752ad499950cd9d8ce57718f70ac4a9c6360362c5866890984e0

Contents?: true

Size: 535 Bytes

Versions: 15

Compression:

Stored size: 535 Bytes

Contents

require 'spec_helper'

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

# DatabaseCleaner.start
def api_migrate
  migrate('admin_flag')
end

def api_name
  :admin_flag
end

load 'roles_active_record/strategy/api_examples.rb'

# describe "Roles for Active Record: admin_flag" do
#   # require "roles_active_record/strategy/user_setup.rb"    
#   # require "roles_active_record/strategy/api"
#   # require "roles_generic/rspec/api"  
# end
# 

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
roles_active_record-0.5.1 spec/roles_active_record/strategy/single/admin_flag_spec.rb
roles_active_record-0.5.0 spec/roles_active_record/strategy/single/admin_flag_spec.rb
roles_active_record-0.4.9 spec/roles_active_record/strategy/single/admin_flag_spec.rb
roles_active_record-0.4.8 spec/roles_active_record/strategy/single/admin_flag_spec.rb
roles_active_record-0.4.7 spec/roles_active_record/strategy/single/admin_flag_spec.rb
roles_active_record-0.4.6.4 spec/roles_active_record/strategy/single/admin_flag_spec.rb
roles_active_record-0.4.6.3 spec/roles_active_record/strategy/single/admin_flag_spec.rb
roles_active_record-0.4.6.2 spec/roles_active_record/strategy/single/admin_flag_spec.rb
roles_active_record-0.4.6.1 spec/roles_active_record/strategy/single/admin_flag_spec.rb
roles_active_record-0.4.6 spec/roles_active_record/strategy/single/admin_flag_spec.rb
roles_active_record-0.4.5 spec/roles_active_record/strategy/single/admin_flag_spec.rb
roles_active_record-0.4.4 spec/roles_active_record/strategy/single/admin_flag_spec.rb
roles_active_record-0.4.3 spec/roles_active_record/strategy/single/admin_flag_spec.rb
roles_active_record-0.4.2 spec/roles_active_record/strategy/single/admin_flag_spec.rb
roles_active_record-0.4.1 spec/roles_active_record/strategy/single/admin_flag_spec.rb