Sha256: ca2738c3add2075487b5cd206e408364646a5560bcd1dd16a2c3d12c3b6c5463
Contents?: true
Size: 679 Bytes
Versions: 4
Compression:
Stored size: 679 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) } context 'when one of given paths is a file' do let(:smelly_source_dir) { SAMPLES_DIR.join('smelly_source') } let(:file_as_path) { smelly_source_dir.join('inline.rb') } let(:paths) { [smelly_source_dir, file_as_path] } it 'raises an error if one of the given paths is a file' do expect { exclusions.add(paths) }.to raise_error(Reek::Errors::ConfigFileError) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems