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, :user # def api_migrate # migrate('roles_mask') # end def api_name :one_role end load 'roles_data_mapper/strategy/api_examples.rb'