Sha256: 54d9dadc44eb826e31049be09e5637418fee1794e0c1a5d4d69c6d1c0e9ad983
Contents?: true
Size: 633 Bytes
Versions: 4
Compression:
Stored size: 633 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') require 'hamster/stack' describe Hamster::Stack do [:to_a, :entries].each do |method| describe "##{method}" do [ [[], []], [["A"], ["A"]], [["A", "B", "C"], ["C", "B", "A"]], ].each do |values, expected| describe "on #{values.inspect}" do before do @stack = Hamster.stack(*values) @result = @stack.send(method) end it "returns #{expected.inspect}" do @result.should == expected end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hamster-0.2.1 | spec/hamster/stack/to_a_spec.rb |
hamster-0.2.0 | spec/hamster/stack/to_a_spec.rb |
hamster-0.1.23 | spec/hamster/stack/to_a_spec.rb |
hamster-0.1.22 | spec/hamster/stack/to_a_spec.rb |