Sha256: 1a10cac31b0fd1a816c8feb8c2d8117b913770390e5697842e51f3a5324ccf72

Contents?: true

Size: 369 Bytes

Versions: 7

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 9 times' do
    analyzer = Fasterer::Analyzer.new(test_file_path)
    analyzer.scan
    expect(analyzer.errors[:block_vs_symbol_to_proc].count).to eq(9)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fasterer-0.11.0 spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb
fasterer-0.10.1 spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb
fasterer-0.10.0 spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb
fasterer-0.9.0 spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb
fasterer-0.8.3 spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb
fasterer-0.8.2 spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb
fasterer-0.8.1 spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb