Sha256: 445e492de6d1f0525e55fc52b48eca44bd4453d2ac84d94cffd8a3ee449431af

Contents?: true

Size: 336 Bytes

Versions: 5

Compression:

Stored size: 336 Bytes

Contents

require 'spec_helper'

describe Fasterer::Analyzer do

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fasterer-0.2.0 spec/lib/fasterer/analyzer/26_getter_vs_attr_reader_spec.rb
fasterer-0.1.12 spec/lib/fasterer/analyzer/26_getter_vs_attr_reader_spec.rb
fasterer-0.1.11 spec/lib/fasterer/analyzer/26_getter_vs_attr_reader_spec.rb
fasterer-0.1.10 spec/lib/fasterer/analyzer/26_getter_vs_attr_reader_spec.rb
fasterer-0.1.9 spec/lib/fasterer/analyzer/26_getter_vs_attr_reader_spec.rb