spec/errors_spec.rb in govdelivery-tms-0.8.2 vs spec/errors_spec.rb in govdelivery-tms-0.8.3
- old
+ new
@@ -1,13 +1,13 @@
require 'spec_helper'
describe GovDelivery::TMS::Errors do
- context "an errors hash" 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"]})
+ 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
\ No newline at end of file
+end