Sha256: 4e4983164df037293cc8784f0be76c02ad303aabed1fd9cfb428c55440be0b6a
Contents?: true
Size: 450 Bytes
Versions: 7
Compression:
Stored size: 450 Bytes
Contents
require 'spec_helper' describe GovDelivery::TMS::Errors do context 'an errors hash' do let(:object_with_errors) do double('instance', href: 'href', errors: { 'body' => ["can't be blank"], 'subject' => ["can't be blank"] }) end subject { GovDelivery::TMS::Errors::InvalidVerb.new(object_with_errors) } it 'should work' do expect(subject.message).to match(/body can't be blank, subject can't be blank/) end end end
Version data entries
7 entries across 7 versions & 1 rubygems