spec/reek/smells/data_clump_spec.rb in reek-2.2.1 vs spec/reek/smells/data_clump_spec.rb in reek-3.0.0
- old
+ new
@@ -23,10 +23,10 @@
def first(pa, pb) @field == :sym ? 0 : 3; end
def second(pa, pb) @field == :sym; end
def third(pa, pb) pa - pb + @fred; end
end
EOS
- ctx = Reek::Core::ModuleContext.new(nil, Reek::Source::SourceCode.from(@src).syntax_tree)
+ ctx = Reek::Context::ModuleContext.new(nil, Reek::Source::SourceCode.from(@src).syntax_tree)
detector = build(:smell_detector, smell_type: :DataClump)
@smells = detector.examine_context(ctx)
end
it 'records only the one smell' do