spec/reek/smells/utility_function_spec.rb in reek-1.2.13 vs spec/reek/smells/utility_function_spec.rb in reek-1.3
- old
+ new
@@ -27,16 +27,16 @@
src = 'def simple(arga) end'
ctx = MethodContext.new(nil, src.to_reek_source.syntax_tree)
@detector.examine_context(ctx).should be_empty
end
it 'does not report literal' do
- 'def simple(arga) 3; end'.should_not reek
+ 'def simple() 3; end'.should_not reek
end
it 'does not report instance variable reference' do
- 'def simple(arga) @yellow end'.should_not reek
+ 'def simple() @yellow end'.should_not reek
end
it 'does not report vcall' do
- 'def simple(arga) y end'.should_not reek
+ 'def simple() y end'.should_not reek
end
it 'does not report references to self' do
'def into; self; end'.should_not reek
end
it 'recognises an ivar reference within a block' do