Sha256: d58c2524573045af2a37a7083ccbb6c19b2632a15c2279b6e3e9b9b7a61276fd

Contents?: true

Size: 507 Bytes

Versions: 15

Compression:

Stored size: 507 Bytes

Contents

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

RSpec.describe Reek::Configuration::ExcludedPaths do
  describe '#add' do
    let(:exclusions) { [].extend(described_class) }
    let(:paths) { ['smelly/sources'] }
    let(:expected_exclude_paths) { [Pathname('smelly/sources')] }

    it 'adds the given paths as Pathname' do
      exclusions.add(paths)
      expect(exclusions).to eq expected_exclude_paths
    end
  end
end

Version data entries

15 entries across 13 versions & 2 rubygems

Version Path
reek-6.0.2 spec/reek/configuration/excluded_paths_spec.rb
reek-6.0.1 spec/reek/configuration/excluded_paths_spec.rb
reek-6.0.0 spec/reek/configuration/excluded_paths_spec.rb
reek-5.6.0 spec/reek/configuration/excluded_paths_spec.rb
reek-5.5.0 spec/reek/configuration/excluded_paths_spec.rb
reek-5.4.1 spec/reek/configuration/excluded_paths_spec.rb
reek-5.4.0 spec/reek/configuration/excluded_paths_spec.rb
reek-5.3.2 spec/reek/configuration/excluded_paths_spec.rb
reek-5.3.1 spec/reek/configuration/excluded_paths_spec.rb
reek-5.3.0 spec/reek/configuration/excluded_paths_spec.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/spec/reek/configuration/excluded_paths_spec.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/spec/reek/configuration/excluded_paths_spec.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/spec/reek/configuration/excluded_paths_spec.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/spec/reek/configuration/excluded_paths_spec.rb
reek-5.2.0 spec/reek/configuration/excluded_paths_spec.rb