Sha256: f08ac9f5c1d6a4bb37fec5222453dedb690f8203dfe1587c30d141bf1a53c900
Contents?: true
Size: 549 Bytes
Versions: 15
Compression:
Stored size: 549 Bytes
Contents
require 'spec_helper' require 'integration/length_validator/spec_helper' describe 'DataMapper::Validations::Fixtures::Jabberwock' do before :all do DataMapper::Validations::Fixtures::Jabberwock.auto_migrate! @model = DataMapper::Validations::Fixtures::Jabberwock.new end describe "without snickersnack" do before :all do @model.snickersnack = nil end it_should_behave_like "invalid model" it "has custom error message" do @model.errors.on(:snickersnack).should == [ 'worble warble' ] end end end
Version data entries
15 entries across 15 versions & 3 rubygems