Sha256: f15d1de770dfe3b2df1b90d719817cda5a47d6067ff876504deeb35815db033c
Contents?: true
Size: 443 Bytes
Versions: 1
Compression:
Stored size: 443 Bytes
Contents
require 'spec_helper' use_roles_strategy :roles_mask class User include DataMapper::Resource include Roles::DataMapper strategy :roles_mask, :default property :id, Serial property :name, String end DataMapper.finalize DataMapper.auto_migrate! User.valid_roles_are :admin, :guest describe "Roles for DataMapper: :roles_mask strategy" do require "roles_data_mapper/user_setup" require "roles_generic/rspec/api" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roles_data_mapper-0.1.3 | spec/roles_data_mapper/strategy/roles_mask_spec.rb |