Sha256: 463949a649f0bdaa8e58e06ab3070bc4c74ebc9f2e45ff846a94c4d5a61bab51

Contents?: true

Size: 349 Bytes

Versions: 2

Compression:

Stored size: 349 Bytes

Contents

require 'spec_helper'

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

  it 'should detect parallel assignment 2 times' do
    analyzer = Fasterer::Analyzer.new(test_file_path)
    analyzer.scan
    expect(analyzer.errors[:parallel_assignment].count).to eq(2)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fasterer-0.3.0 spec/lib/fasterer/analyzer/01_parallel_assignment_spec.rb
fasterer-0.2.1 spec/lib/fasterer/analyzer/01_parallel_assignment_spec.rb