Sha256: 851a3b3f1122f86614742ae5905726a84dd2ad411f67904dc27ddde560be33f7
Contents?: true
Size: 466 Bytes
Versions: 15
Compression:
Stored size: 466 Bytes
Contents
require_relative '../../../spec_helper' require_lib 'reek/examiner' RSpec.describe 'Runtime speed' do let(:source_directory) { SAMPLES_DIR.join('smelly_source') } it 'runs on our smelly sources in less than 5 seconds' do expect do source_directory.each_entry do |entry| next if %w(. ..).include?(entry.to_s) examiner = Reek::Examiner.new entry.to_path examiner.smells.size end end.to perform_under(5).sec end end
Version data entries
15 entries across 13 versions & 2 rubygems