Sha256: db942e91236ce7841a8cd81552be0881b0c25398dcba2e354a60d151fe9cb521

Contents?: true

Size: 540 Bytes

Versions: 12

Compression:

Stored size: 540 Bytes

Contents

require File.join(File.dirname(File.dirname(File.dirname(File.expand_path(__FILE__)))), 'spec_helper')

include Reek

describe Dir do
  it 'reports correct smells via the Dir matcher' do
    files = Dir['spec/samples/two_smelly_files/*.rb']
    files.should reek
    files.should reek_of(:UncommunicativeVariableName)
    files.should_not reek_of(:LargeClass)
  end

  it 'copes with daft file specs' do
    Dir["spec/samples/two_smelly_files/*/.rb"].should_not reek
  end

  it 'copes with empty array' do
    [].should_not reek
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
reek-1.3.1 spec/reek/source/object_source_spec.rb
reek-1.3 spec/reek/source/object_source_spec.rb
reek-1.2.13 spec/reek/source/object_source_spec.rb
reek-1.2.12 spec/reek/source/object_source_spec.rb
reek-1.2.11 spec/reek/source/object_source_spec.rb
reek-1.2.10 spec/reek/source/object_source_spec.rb
reek-1.2.9 spec/reek/source/object_source_spec.rb
reek-1.2.8 spec/reek/source/object_source_spec.rb
reek-1.2.7.3 spec/reek/source/object_source_spec.rb
reek-1.2.7.2 spec/reek/source/object_source_spec.rb
reek-1.2.7.1 spec/reek/source/object_source_spec.rb
reek-1.2.7 spec/reek/source/object_source_spec.rb