Sha256: bb04fe101c79985c56cd708675e452b8adbee61fefafe7e77fff810df58f5089

Contents?: true

Size: 338 Bytes

Versions: 4

Compression:

Stored size: 338 Bytes

Contents

require 'spec_helper'

describe Fasterer::Analyzer do

  let(:test_file_path) { RSpec.root.join('support', 'analyzer', '12_select_first_vs_detect.rb') }

  it 'should detect sort once' do
    analyzer = Fasterer::Analyzer.new(test_file_path)
    analyzer.scan
    expect(analyzer.errors[:select_first_vs_detect].count).to eq(3)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fasterer-0.2.0 spec/lib/fasterer/analyzer/12_select_first_vs_detect_spec.rb
fasterer-0.1.12 spec/lib/fasterer/analyzer/12_select_first_vs_detect_spec.rb
fasterer-0.1.11 spec/lib/fasterer/analyzer/12_select_first_vs_detect_spec.rb
fasterer-0.1.10 spec/lib/fasterer/analyzer/12_select_first_vs_detect_spec.rb