Sha256: a25b2f8a3140a90dc465192dd7f173adf84fea7f2181a06bbf7d986267c638c6
Contents?: true
Size: 577 Bytes
Versions: 2
Compression:
Stored size: 577 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper.rb' require 'reek/method_checker' require 'reek/report' include Reek describe Report, "to_s" do before(:each) do rpt = Report.new chk = MethodChecker.new(rpt, 'Thing') chk.check_source('def simple(arga) arga[3] end') @report = rpt.to_s.split("\n") end it 'should place each detailed report on a separate line' do @report.length.should == 2 end it 'should mention every smell name' do @report[0].should match(/[Utility Function]/) @report[1].should match(/[Feature Envy]/) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reek-0.0.1 | spec/reek/report_spec.rb |
reek-0.1.0 | spec/reek/report_spec.rb |