Sha256: 2ddcbbec857e0038fbc6db618b04fa2ff33d0c2788f328f9e2b14fefa7986b94

Contents?: true

Size: 420 Bytes

Versions: 1

Compression:

Stored size: 420 Bytes

Contents

require "spec_helper"

require "hamster/stack"

describe Hamster::Stack do

  [:dup, :clone].each do |method|

    [
      [],
      ["A"],
      %w[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

1 entries across 1 versions & 1 rubygems

Version Path
hamster-1.0.1.pre.rc.1 spec/hamster/stack/copying_spec.rb