Sha256: a42052e57da3fa945e48f6360c7193926a770d89b82d1c47af3a5c1c142530c2
Contents?: true
Size: 560 Bytes
Versions: 3
Compression:
Stored size: 560 Bytes
Contents
# -*- coding: utf-8 -*- require_relative '../../spec_helper' require_relative 'spec_helper' describe 'DataMapper::Validations::Fixtures::Page' do before :all do DataMapper::Validations::Fixtures::Page.auto_migrate! @model = DataMapper::Validations::Fixtures::Page.new(:id => 1024) end describe "without body" do before :all do @model.body = nil end it_behaves_like 'invalid model' it "does not have duplicated error messages" do expect(@model.errors.on(:body)).to eq ["Body must not be blank"] end end end
Version data entries
3 entries across 3 versions & 1 rubygems