spec/reek/smells/utility_function_spec.rb in reek-3.5.0 vs spec/reek/smells/utility_function_spec.rb in reek-3.6.0

- old
+ new

@@ -1,14 +1,12 @@ require_relative '../../spec_helper' require_lib 'reek/smells/utility_function' require_lib 'reek/examiner' require_relative 'smell_detector_shared' -# TODO: Bring specs in line with specs for other detectors RSpec.describe Reek::Smells::UtilityFunction do describe 'a detector' do - let(:detector) { build(:smell_detector, smell_type: :UtilityFunction, source: source_name) } - let(:source_name) { 'string' } + let(:detector) { build(:smell_detector, smell_type: :UtilityFunction) } it_should_behave_like 'SmellDetector' context 'when a smells is reported' do let(:warning) do