From ff8f78f61cb1be693936064f452b1811dd500604 Mon Sep 17 00:00:00 2001 From: Alexander Paramonov Date: Sun, 11 May 2014 21:15:04 +0300 Subject: [PATCH] :wrench: --- spec/undo/storage/redis_spec.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/spec/undo/storage/redis_spec.rb b/spec/undo/storage/redis_spec.rb index 5923ee6..2bd6085 100644 --- a/spec/undo/storage/redis_spec.rb +++ b/spec/undo/storage/redis_spec.rb @@ -26,7 +26,7 @@ let(:options) { { additional: :option } } it "does not send options to redis.get" do - expect(redis).to receive(:get).with("foo") { '"bar"' } + expect(redis).to receive(:get).with("foo") { "bar".to_json } subject.fetch "foo" end @@ -39,11 +39,6 @@ expect(redis).to receive(:set).with anything, anything, options subject.store "foo", "bar" end - - before do - # JSON.load behaves differently in 1.9 - allow(redis).to receive(:get).with(any_args) { { :foo => :bar }.to_json } - end if RUBY_VERSION < "2.0" end describe "options" do