Sha256: 75806c0687038453995978246e9593b076483d9d9b01b3d2441ccb22b8a15009
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 Bytes
Contents
require 'spec_helper' use_roles_strategy :many_roles class User include DataMapper::Resource include Roles::DataMapper strategy :many_roles, :default role_class :role property :id, Serial property :name, String end DataMapper.finalize DataMapper.auto_migrate! User.valid_roles_are :admin, :guest describe "Roles for DataMapper: :many_roles 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/many_roles_spec.rb |