Sha256: e3050c0a6f15c01f752307b7a6c1b14dc587a603f84063c4d8e9f1d0d2b38899
Contents?: true
Size: 350 Bytes
Versions: 14
Compression:
Stored size: 350 Bytes
Contents
require 'spec_helper' describe Fasterer::Analyzer do let(:test_file_path) { RSpec.root.join('support', 'analyzer', '10_map_flatten_vs_flat_map.rb') } it 'should detect a map{}.flatten(1) ' do analyzer = Fasterer::Analyzer.new(test_file_path) analyzer.scan expect(analyzer.errors[:map_flatten_vs_flat_map].count).to eq(2) end end
Version data entries
14 entries across 14 versions & 1 rubygems