Sha256: e0d64e86909d167cb91f381d46959c50afcf334e9b6d688f4f0b0c3af2c1b7d9
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
require_relative '../../spec_helper' describe Dir do it 'reports correct smells via the Dir matcher' do files = Dir['spec/samples/two_smelly_files/*.rb'] expect(files).to reek expect(files).to reek_of(:UncommunicativeVariableName) expect(files).not_to reek_of(:LargeClass) end it 'copes with daft file specs' do expect(Dir['spec/samples/two_smelly_files/*/.rb']).not_to reek end it 'copes with empty array' do expect([]).not_to reek end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reek-2.1.0 | spec/reek/source/object_source_spec.rb |