Sha256: 4e57199a6c31cb2b0b76cee16b8450c0092f8d4c127175aab61152a23bde576b
Contents?: true
Size: 592 Bytes
Versions: 2
Compression:
Stored size: 592 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper.rb' require 'reek/smells/smells' include Reek describe SmellWarning, 'equality' do before :each do @first = SmellWarning.new(Smells::FeatureEnvy.new, "self", "self") @second = SmellWarning.new(Smells::FeatureEnvy.new, "self", "self") end it 'should hash equal when the smell is the same' do @first.hash.should == @second.hash end it 'should compare equal when the smell is the same' do @first.should == @second end it 'should compare equal when using <=>' do (@first <=> @second).should == 0 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kevinrutherford-reek-1.1.3.10 | spec/reek/smell_warning_spec.rb |
kevinrutherford-reek-1.1.3.9 | spec/reek/smell_warning_spec.rb |