Sha256: fb42498206d5f5eb13670571f5f39aa13f60c5ad3821869735549c9d649ab9ab
Contents?: true
Size: 327 Bytes
Versions: 14
Compression:
Stored size: 327 Bytes
Contents
require 'spec_helper' describe Fasterer::Analyzer do let(:test_file_path) { RSpec.root.join('support', 'analyzer', '08_for_loop_vs_each.rb') } it 'should detect a for loop' do analyzer = Fasterer::Analyzer.new(test_file_path) analyzer.scan expect(analyzer.errors[:for_loop_vs_each].count).to eq(1) end end
Version data entries
14 entries across 14 versions & 1 rubygems