require File.dirname(__FILE__) + '/../spec_helper.rb' require 'reek/class_context' require 'reek/stop_context' require 'reek/smells/feature_envy' include Reek include Reek::Smells describe ClassContext do it 'should report Long Parameter List' do ruby = 'class Inner; def simple(arga, argb, argc, argd) f(3);true end end' ruby.should reek_of(:LongParameterList, /Inner/, /simple/, /4 parameters/) end it 'should report two different methods' do src = <