Sha256: 61535bcfe9b374e96a1055c7c359019f31ff53e5e4d088199d4b79ac8cca2283
Contents?: true
Size: 564 Bytes
Versions: 1
Compression:
Stored size: 564 Bytes
Contents
# -*- coding: utf-8 -*- require 'spec_helper' require 'integration/duplicated_validations/spec_helper' describe 'DataMapper::Validate::Fixtures::Page' do before :all do DataMapper::Validate::Fixtures::Page.auto_migrate! @model = DataMapper::Validate::Fixtures::Page.new(:id => 1024) end describe "without body" do before :all do @model.body = nil end it_should_behave_like "invalid model" it "does not have duplicated error messages" do @model.errors.on(:body).should == ["Body must not be blank"] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dm-validations-0.10.2 | spec/integration/duplicated_validations/duplicated_validations_spec.rb |