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