Sha256: 51d2f37308f6a726a00698d4a75a834cab8901c89ae7e352a401d24167711bd8
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 Bytes
Contents
require 'spec_helper' use_roles_strategy :one_role class User include DataMapper::Resource include Roles::DataMapper strategy :one_role, :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: :one_role 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/one_role_spec.rb |