require 'spec_helper' describe 'An active_model compliant DataMapper::Resource' do before :all do module ComplianceTest class ProfileInfo include DataMapper::Resource property :id, Serial end end DataMapper.setup(:default, 'sqlite3::memory:') DataMapper.auto_migrate! end before :each do @object = ComplianceTest::ProfileInfo.create.to_model end it_should_behave_like 'every active_model compliant object' end