Sha256: 87652da16ac913d4a03362e090b6abfd18be3e4a7eafdebe4344c9d73622f1d6
Contents?: true
Size: 447 Bytes
Versions: 1
Compression:
Stored size: 447 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper.rb' require 'reek/method_checker' require 'reek/report' include Reek describe MethodChecker, " nested iterators" do before(:each) do @rpt = Report.new @chk = MethodChecker.new(@rpt, 'Thing') end it "should report nested iterators in a method" do @chk.check_source('def bad(fred) @fred.each {|item| item.each {|ting| ting.ting} } end') @rpt.length.should == 1 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reek-0.1.0 | spec/reek/nested_iterators_spec.rb |