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