Permalink
Browse files

okjson does not encode symbols

  • Loading branch information...
1 parent a25f590 commit a938b67c5f5a44940494b258b84775b0429315df @rkh rkh committed Apr 25, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/error_spec.rb
View
@@ -10,7 +10,7 @@ def modify_hash(*)
let(:exception) do
begin
- SomeWrapper.new.load(:foo => :bar)
+ SomeWrapper.new.load('foo' => 'bar')
nil
rescue Exception => error
error
@@ -26,6 +26,6 @@ def modify_hash(*)
end
it 'keeps the payload around' do
- exception.payload.should be == {:foo => :bar}
+ exception.payload.should be == {'foo' => 'bar'}
end
end

0 comments on commit a938b67

Please sign in to comment.