spec/reek/smells/data_clump_spec.rb in reek-2.1.0 vs spec/reek/smells/data_clump_spec.rb in reek-2.2.0

- old
+ new

@@ -1,10 +1,10 @@ require_relative '../../spec_helper' require_relative '../../../lib/reek/smells/data_clump' require_relative 'smell_detector_shared' -shared_examples_for 'a data clump detector' do +RSpec.shared_examples_for 'a data clump detector' do it 'does not report small parameter sets' do src = <<-EOS # test module #{@context} Scrunch def first(pa) @field == :sym ? 0 : 3; end @@ -158,10 +158,10 @@ expect(src).to reek_of(:DataClump, parameters: %w(p1 p2)) end end -describe Reek::Smells::DataClump do +RSpec.describe Reek::Smells::DataClump do before(:each) do @detector = build(:smell_detector, smell_type: :DataClump) end it_should_behave_like 'SmellDetector'