spec/pardot/error_spec.rb in ruby-pardot-1.3.2 vs spec/pardot/error_spec.rb in ruby-pardot-1.4.0

- old
+ new

@@ -1,11 +1,13 @@ +# frozen_string_literal: true + require 'spec_helper' describe Pardot::ResponseError do before do @res = { - "code" => "9", - "__content__" => "A prospect with the specified email address already exists" + 'code' => '9', + '__content__' => 'A prospect with the specified email address already exists' } end describe '#code' do subject do @@ -19,13 +21,13 @@ describe '#to_s, #message' do subject do described_class.new(@res) end specify do - expect(subject.to_s).to eq(@res["__content__"]) + expect(subject.to_s).to eq(@res['__content__']) end specify do - expect(subject.message).to eq(@res["__content__"]) + expect(subject.message).to eq(@res['__content__']) end end describe '#inspect' do subject do