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