Sha256: 51fa6d4eeb479535e5fe79e0b4a7d77685c1d5d497a0383b2634cbaca4344bcb
Contents?: true
Size: 664 Bytes
Versions: 3
Compression:
Stored size: 664 Bytes
Contents
require 'spec_helper' module Polygon describe Entry, '==' do subject{ left == right } context 'when the same entries' do let(:left) { Entry.new(Path.dir, Path.here % Path.dir) } let(:right){ Entry.new(Path.dir, Path.here % Path.dir) } it{ should be_true } end context 'when not the same entries' do let(:left) { Entry.new(Path.dir, Path.here % Path.dir) } let(:right){ Entry.new(Path.dir, "another one") } it{ should be_false } end context 'when bad comparison' do let(:left) { Entry.new(Path.dir, Path.here % Path.dir) } let(:right){ 12 } it{ should be_false } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
polygon-0.10.1 | spec/entry/test_equality.rb |
polygon-0.10.0 | spec/entry/test_equality.rb |
polygon-0.9.1 | spec/entry/test_equality.rb |