Sha256: 9c5809a398dd950f361a160f27d5fc1b7fe2ffcf7a1e52c5dc644ad0e1de8b08

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')

describe Hamster::Stack do

  describe "#eql?" do

    it "is true for the same instance" do
      stack = Hamster::Stack.new
      stack.should eql(stack)
    end

    it "is true for two empty instances" do
      Hamster::Stack.new.should eql(Hamster::Stack.new)
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hamster-0.1.8 spec/hamster/stack/eql_spec.rb