spec/archiver_spec.rb in alephant-publisher-queue-2.0.0 vs spec/archiver_spec.rb in alephant-publisher-queue-2.0.1

- old
+ new

@@ -1,6 +1,6 @@ -require 'spec_helper' +require "spec_helper" describe Alephant::Publisher::Queue::SQSHelper::Archiver do let (:cache) { instance_double("Alephant::Cache", :put => nil) } let (:queue) { instance_double("AWS::SQS::Queue", :url => nil) } let (:message) do @@ -32,16 +32,14 @@ specify do expect(cache).to receive(:put).with( "archive/#{time_now.strftime('%d-%m-%Y_%H')}/id", message.body, - { - :id => message.id, - :md5 => message.md5, - :logged_at => time_now.to_s, - :queue => message.queue.url - } + :id => message.id, + :md5 => message.md5, + :logged_at => time_now.to_s, + :queue => message.queue.url ) subject.see(message) end end end @@ -64,6 +62,5 @@ expect(message).to have_received(:body).once end end end end -