Sha256: cd38331541b12e86be000500e3a223df7da20266e3771ed56f0f67dbd72ee20d

Contents?: true

Size: 377 Bytes

Versions: 3

Compression:

Stored size: 377 Bytes

Contents

require_relative '../../spec_helper'

describe 'DataMapper::Validations::ViolationSet#respond_to?' do

  subject { DataMapper::Validations::ViolationSet.new(Object.new) }

  it 'looks for the method in self' do
    expect(subject).to respond_to(:full_messages)
  end

  it 'delegates lookup to the underlying errors hash' do
    expect(subject).to respond_to(:size)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sbf-dm-validations-1.4.0 spec/unit/violation_set/respond_to_spec.rb
sbf-dm-validations-1.3.0 spec/unit/violation_set/respond_to_spec.rb
sbf-dm-validations-1.3.0.beta spec/unit/violation_set/respond_to_spec.rb