Skip to content

Commit

Permalink
🔧
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexParamonov committed May 11, 2014
1 parent ea42398 commit ff8f78f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions spec/undo/storage/redis_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit ff8f78f

Please sign in to comment.