Sha256: de3bd5a94ff4b943ef9120c1c691d58d310afd9c18ddfb8fdebf0bb8b9623d97

Contents?: true

Size: 340 Bytes

Versions: 3

Compression:

Stored size: 340 Bytes

Contents

require 'spec_helper'
module Polygon
  describe Entry, 'hash' do

    it 'should be consistent with ==' do
      e = Entry.new(Path.dir, Path.here % Path.dir)
      f = Entry.new(Path.dir, Path.here % Path.dir)
      g = Entry.new(Path.dir, 'another one')
      e.hash.should eq(f.hash)
      e.hash.should_not eq(g.hash)
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
polygon-0.10.1 spec/entry/test_hash.rb
polygon-0.10.0 spec/entry/test_hash.rb
polygon-0.9.1 spec/entry/test_hash.rb