Sha256: 7f78edc468bb71f33bb03dec4529bc50643e523c8a6f207464c0ee28cd082492
Contents?: true
Size: 506 Bytes
Versions: 2
Compression:
Stored size: 506 Bytes
Contents
# -*- coding: utf-8 -*- require 'spec_helper' require 'integration/duplicated_validations/spec_helper' describe DataMapper::Validate::Fixtures::Page do before :all do @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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dm-validations-0.10.1 | spec/integration/duplicated_validations/duplicated_validations_spec.rb |
dm-validations-0.10.0 | spec/integration/duplicated_validations/duplicated_validations_spec.rb |