Sha256: bcfabfdac0f3b557c7dad582685f55086e0359557788ab234614eef2877738fc

Contents?: true

Size: 369 Bytes

Versions: 10

Compression:

Stored size: 369 Bytes

Contents

require 'spec_helper'

describe Fasterer::Analyzer do
  let(:test_file_path) { RSpec.root.join('support', 'analyzer', '18_block_vs_symbol_to_proc.rb') }

  it 'should block that could be called with symbol 2 times' do
    analyzer = Fasterer::Analyzer.new(test_file_path)
    analyzer.scan
    expect(analyzer.errors[:block_vs_symbol_to_proc].count).to eq(2)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fasterer-0.6.0 spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb
fasterer-0.5.1 spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb
fasterer-0.5.0 spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb
fasterer-0.4.2 spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb
fasterer-0.4.1 spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb
fasterer-0.4.0 spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb
fasterer-0.3.2 spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb
fasterer-0.3.1 spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb
fasterer-0.3.0 spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb
fasterer-0.2.1 spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb