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