Sha256: 1905db4242d3dab8554addece5ce6ae57640627d5760f3738fde0a1321f8900b
Contents?: true
Size: 613 Bytes
Versions: 2
Compression:
Stored size: 613 Bytes
Contents
require File.expand_path('../../spec_helper', File.dirname(__FILE__)) 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}"] ].each do |values, expected| describe "on #{values.inspect}" do before do original = Hamster.hash(*values) @result = original.inspect end it "returns #{expected.inspect}" do @result.should == expected end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hamster-0.2.7 | spec/hamster/hash/inspect_spec.rb |
hamster-0.2.6 | spec/hamster/hash/inspect_spec.rb |