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

Version Path
ardm-validations-1.2.0 spec/integration/length_validator/error_message_spec.rb
aequitas-0.0.1 spec_legacy/integration/length_validator/error_message_spec.rb
dm-validations-1.2.0 spec/integration/length_validator/error_message_spec.rb
dm-validations-1.2.0.rc2 spec/integration/length_validator/error_message_spec.rb
dm-validations-1.2.0.rc1 spec/integration/length_validator/error_message_spec.rb
dm-validations-1.1.0 spec/integration/length_validator/error_message_spec.rb
dm-validations-1.1.0.rc3 spec/integration/length_validator/error_message_spec.rb
dm-validations-1.1.0.rc2 spec/integration/length_validator/error_message_spec.rb
dm-validations-1.1.0.rc1 spec/integration/length_validator/error_message_spec.rb
dm-validations-1.0.2 spec/integration/length_validator/error_message_spec.rb
dm-validations-1.0.1 spec/integration/length_validator/error_message_spec.rb
dm-validations-1.0.0 spec/integration/length_validator/error_message_spec.rb
dm-validations-1.0.0.rc3 spec/integration/length_validator/error_message_spec.rb
dm-validations-1.0.0.rc2 spec/integration/length_validator/error_message_spec.rb
dm-validations-1.0.0.rc1 spec/integration/length_validator/error_message_spec.rb