Sha256: 3ff5495d8bfea7f60f2692c39e79108fc88245f79dc65071e836745457b795eb
Contents?: true
Size: 644 Bytes
Versions: 4
Compression:
Stored size: 644 Bytes
Contents
require 'pathname' require Pathname(__FILE__).dirname.expand_path.parent + 'spec_helper' describe DataMapper::Ambition::Model do def self.loaded false end before :all do class ::User include DataMapper::Resource property :id, Serial property :name, String property :admin, Boolean, :default => false end @model = User end supported_by :all do before :all do @user = @model.create(:name => 'Dan Kubb', :admin => true) @other = @model.create(:name => 'Sam Smoot') @subject = @model end it_should_behave_like 'it has public filter methods' end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dm-ambition-1.2.0 | spec/public/model_spec.rb |
dm-ambition-1.1.0 | spec/public/model_spec.rb |
dm-ambition-1.1.0.rc3 | spec/public/model_spec.rb |
dm-ambition-1.1.0.rc1 | spec/public/model_spec.rb |