Skip to content

Commit 3da4414

Browse files
committed
Ruby 1.9+ hash syntax
1 parent cdea682 commit 3da4414

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/json_spec/memory_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
it "memorizes strings" do
99
JsonSpec.memorize(:key, "value")
10-
JsonSpec.memory.should == {:key => "value"}
10+
JsonSpec.memory.should == { key: "value" }
1111
end
1212

1313
it "symbolizes keys" do
1414
JsonSpec.memorize("key", "value")
15-
JsonSpec.memory.should == {:key => "value"}
15+
JsonSpec.memory.should == { key: "value" }
1616
end
1717

1818
it "regurgitates unremembered strings" do

0 commit comments

Comments
 (0)