Sha256: 315f99b1166ea640cf92d3c42f25afbea4595906a6d15b19152d0e0c7d241f30

Contents?: true

Size: 369 Bytes

Versions: 1

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fasterer-0.7.0 spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb