Sha256: 3459c7918d138fa7fe05e41989cb656749ba4016af9ea29419f6a02b85f19aef
Contents?: true
Size: 627 Bytes
Versions: 3
Compression:
Stored size: 627 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper.rb' require 'reek/smell_warning' require 'reek/smells/feature_envy' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kevinrutherford-reek-1.1.3.11 | spec/reek/smell_warning_spec.rb |
kevinrutherford-reek-1.1.3.12 | spec/reek/smell_warning_spec.rb |
kevinrutherford-reek-1.1.3.13 | spec/reek/smell_warning_spec.rb |