spec/resources/media_spec.rb in flapjack-diner-2.0.0.pre.alpha.3 vs spec/resources/media_spec.rb in flapjack-diner-2.0.0

- old
+ new

@@ -1,9 +1,9 @@ require 'spec_helper' require 'flapjack-diner' -describe Flapjack::Diner::Resources::Media, :pact => true do +describe Flapjack::Diner::Resources, :pact => true do before(:each) do Flapjack::Diner.base_uri('localhost:19081') Flapjack::Diner.logger = nil end @@ -196,11 +196,11 @@ }]} ) result = Flapjack::Diner.update_media(:id => email_data[:id], :interval => 50) expect(result).to be_nil - expect(Flapjack::Diner.last_error).to eq([{:status => '404', + expect(Flapjack::Diner.error).to eq([{:status => '404', :detail => "could not find Medium record, id: '#{email_data[:id]}'"}]) end end @@ -252,10 +252,10 @@ }]} ) result = Flapjack::Diner.delete_media(sms_data[:id]) expect(result).to be_nil - expect(Flapjack::Diner.last_error).to eq([{:status => '404', + expect(Flapjack::Diner.error).to eq([{:status => '404', :detail => "could not find Medium record, id: '#{sms_data[:id]}'"}]) end end