test/lib/rubycritic/analysers/smells/reek_test.rb in rubycritic-1.3.0 vs test/lib/rubycritic/analysers/smells/reek_test.rb in rubycritic-1.4.0

- old
+ new

@@ -7,11 +7,11 @@ @analysed_module = AnalysedModuleDouble.new(:path => "test/samples/reek/smelly.rb", :smells => []) analysed_modules = [@analysed_module] Rubycritic::Analyser::ReekSmells.new(analysed_modules).run end - it "detects smells and adds them to analysed_modules" do + it "detects its smells" do @analysed_module.smells.length.must_equal 1 end it "creates smells with messages" do smell = @analysed_module.smells.first @@ -24,10 +24,10 @@ @analysed_module = AnalysedModuleDouble.new(:path => "test/samples/reek/not_smelly.rb", :smells => []) analysed_modules = [@analysed_module] Rubycritic::Analyser::ReekSmells.new(analysed_modules).run end - it "does not detect smells and does not add them to analysed files" do + it "does not detect those smells" do @analysed_module.smells.must_be_empty end end end