test/lib/rubycritic/analysers/smells/reek_test.rb in rubycritic-2.9.4 vs test/lib/rubycritic/analysers/smells/reek_test.rb in rubycritic-3.0.0

- old
+ new

@@ -13,9 +13,14 @@ it 'detects its smells' do @analysed_module.smells.length.must_equal 2 end + it 'respects the .reek file' do + messages = @analysed_module.smells.map(&:message) + messages.wont_include "has the parameter name 'a'" + end + it 'creates smells with messages' do first_smell = @analysed_module.smells.first first_smell.message.must_equal "has boolean parameter 'reek'" last_smell = @analysed_module.smells.last