Sha256: 5463087f921d8d0223450a7b92fdb325e80e505036f03bae3a7edcbb3bc0353a
Contents?: true
Size: 499 Bytes
Versions: 1
Compression:
Stored size: 499 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe Hamster::Stack do describe "#inspect" do [ [[], "[]"], [["A"], "[\"A\"]"], [["A", "B", "C"], "[\"C\", \"B\", \"A\"]"] ].each do |values, expected| describe "on #{values.inspect}" do before do @stack = Hamster.stack(*values) end it "returns #{expected}" do @stack.inspect.should == expected end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hamster-0.1.14 | spec/hamster/stack/inspect_spec.rb |