Sha256: 29993185f9fdd980239cecd20218cc590e8900de33b59cd9f5f3d9ed3fa594e4

Contents?: true

Size: 575 Bytes

Versions: 27

Compression:

Stored size: 575 Bytes

Contents

require_relative '../../spec_helper'
require_lib 'reek/configuration/excluded_paths'

RSpec.describe Reek::Configuration::ExcludedPaths do
  describe '#add' do
    subject { [].extend(described_class) }

    context 'one of given paths is a file' do
      let(:file_as_path) { SAMPLES_PATH.join('inline.rb') }
      let(:paths) { [SAMPLES_PATH, file_as_path] }

      it 'raises an error if one of the given paths is a file' do
        Reek::CLI::Silencer.silently do
          expect { subject.add(paths) }.to raise_error(SystemExit)
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
reek-4.4.1 spec/reek/configuration/excluded_paths_spec.rb
reek-4.4.0 spec/reek/configuration/excluded_paths_spec.rb
reek-4.3.0 spec/reek/configuration/excluded_paths_spec.rb
reek-4.2.5 spec/reek/configuration/excluded_paths_spec.rb
reek-4.2.4 spec/reek/configuration/excluded_paths_spec.rb
reek-4.2.3 spec/reek/configuration/excluded_paths_spec.rb
reek-4.2.2 spec/reek/configuration/excluded_paths_spec.rb
reek-4.2.1 spec/reek/configuration/excluded_paths_spec.rb
reek-4.2.0 spec/reek/configuration/excluded_paths_spec.rb
reek-4.1.1 spec/reek/configuration/excluded_paths_spec.rb
reek-4.1.0 spec/reek/configuration/excluded_paths_spec.rb
reek-4.0.5 spec/reek/configuration/excluded_paths_spec.rb
reek-4.0.4 spec/reek/configuration/excluded_paths_spec.rb
reek-4.0.3 spec/reek/configuration/excluded_paths_spec.rb
reek-4.0.2 spec/reek/configuration/excluded_paths_spec.rb
reek-4.0.1 spec/reek/configuration/excluded_paths_spec.rb
reek-4.0.0 spec/reek/configuration/excluded_paths_spec.rb
reek-4.0.0.pre1 spec/reek/configuration/excluded_paths_spec.rb
reek-3.11 spec/reek/configuration/excluded_paths_spec.rb
reek-3.10.2 spec/reek/configuration/excluded_paths_spec.rb