spec/archiver_spec.rb in alephant-publisher-0.5.1 vs spec/archiver_spec.rb in alephant-publisher-0.6.1
- old
+ new
@@ -2,10 +2,10 @@
describe Alephant::Publisher::SQSHelper::Archiver do
describe "#see" do
it "calls cache put with the correct params" do
time_now = DateTime.parse("Feb 24 1981")
- DateTime.stub(:now).and_return(time_now)
+ allow(DateTime).to receive(:now).and_return(time_now)
q = double("queue").as_null_object
c = double("cache").as_null_object
expect(q).to receive(:url).and_return('url')