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

Version Path
fasterer-0.2.0 spec/lib/fasterer/analyzer/10_map_flatten_vs_flat_map_spec.rb
fasterer-0.1.12 spec/lib/fasterer/analyzer/10_map_flatten_vs_flat_map_spec.rb
fasterer-0.1.11 spec/lib/fasterer/analyzer/10_map_flatten_vs_flat_map_spec.rb
fasterer-0.1.10 spec/lib/fasterer/analyzer/10_map_flatten_vs_flat_map_spec.rb
fasterer-0.1.9 spec/lib/fasterer/analyzer/10_map_flatten_vs_flat_map_spec.rb
fasterer-0.1.8 spec/lib/fasterer/analyzer/10_map_flatten_vs_flat_map_spec.rb
fasterer-0.1.7 spec/lib/fasterer/analyzer/10_map_flatten_vs_flat_map_spec.rb
fasterer-0.1.6 spec/lib/fasterer/analyzer/10_map_flatten_vs_flat_map_spec.rb
fasterer-0.1.5 spec/lib/fasterer/analyzer/10_map_flatten_vs_flat_map_spec.rb
fasterer-0.1.4 spec/lib/fasterer/analyzer/10_map_flatten_vs_flat_map_spec.rb
fasterer-0.1.3 spec/lib/fasterer/analyzer/10_map_flatten_vs_flat_map_spec.rb
fasterer-0.1.2 spec/lib/fasterer/analyzer/10_map_flatten_vs_flat_map_spec.rb
fasterer-0.1.1 spec/lib/fasterer/analyzer/10_map_flatten_vs_flat_map_spec.rb
fasterer-0.1.0 spec/lib/fasterer/analyzer/10_map_flatten_vs_flat_map_spec.rb