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

Version Path
hamster-0.2.5 spec/hamster/stack/copying_spec.rb
hamster-0.2.4 spec/hamster/stack/copying_spec.rb
hamster-0.2.3 spec/hamster/stack/copying_spec.rb
hamster-0.2.2 spec/hamster/stack/copying_spec.rb
hamster-0.2.1 spec/hamster/stack/copying_spec.rb
hamster-0.2.0 spec/hamster/stack/copying_spec.rb
hamster-0.1.23 spec/hamster/stack/copying_spec.rb
hamster-0.1.22 spec/hamster/stack/copying_spec.rb
hamster-0.1.21 spec/hamster/stack/copying_spec.rb
hamster-0.1.20 spec/hamster/stack/copying_spec.rb
hamster-0.1.19 spec/hamster/stack/copying_spec.rb
hamster-0.1.18 spec/hamster/stack/copying_spec.rb
hamster-0.1.17 spec/hamster/stack/copying_spec.rb
hamster-0.1.16 spec/hamster/stack/copying_spec.rb
hamster-0.1.15 spec/hamster/stack/copying_spec.rb