spec/hamster/hash/inspect_spec.rb in hamster-0.3.6 vs spec/hamster/hash/inspect_spec.rb in hamster-0.3.7
- old
+ new
@@ -1,16 +1,16 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require 'spec_helper'
require 'hamster/hash'
describe Hamster::Hash do
describe "#inspect" do
[
[[], "{}"],
[["A" => "aye"], "{\"A\" => \"aye\"}"],
- [[1 => :one, 2 => :two, 3 => :three], "{1 => :one, 2 => :two, 3 => :three}"]
+ [[DeterministicHash.new("A", 1) => "aye", DeterministicHash.new("B", 2) => "bee", DeterministicHash.new("C", 3) => "see"], "{\"A\" => \"aye\", \"B\" => \"bee\", \"C\" => \"see\"}"]
].each do |values, expected|
describe "on #{values.inspect}" do
before do