Sha256: 57522c0d2a6406a12a0b652aec3756fd87af80568a1cb11baff15a5c9e1e3766

Contents?: true

Size: 459 Bytes

Versions: 7

Compression:

Stored size: 459 Bytes

Contents

require '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

7 entries across 7 versions & 1 rubygems

Version Path
reek-1.3.8 spec/reek/source/object_source_spec.rb
reek-1.3.7 spec/reek/source/object_source_spec.rb
reek-1.3.6 spec/reek/source/object_source_spec.rb
reek-1.3.5 spec/reek/source/object_source_spec.rb
reek-1.3.4 spec/reek/source/object_source_spec.rb
reek-1.3.3 spec/reek/source/object_source_spec.rb
reek-1.3.2 spec/reek/source/object_source_spec.rb