Sha256: 940e0cadf15183dd1ca81caf5256209ec6d43891067f362a5896489563c1a71b
Contents?: true
Size: 476 Bytes
Versions: 15
Compression:
Stored size: 476 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') require 'hamster/stack' describe Hamster::Stack do [:dup, :clone].each do |method| [ [], ["A"], ["A", "B", "C"], ].each do |values| describe "on #{values.inspect}" do before do @stack = Hamster.stack(*values) end it "returns self" do @stack.send(method).should equal(@stack) end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems