Sha256: eee739ef1843ee4c22ccbde5d37d12f46c50e12450502a82c6f089fd58b78aab

Contents?: true

Size: 271 Bytes

Versions: 4

Compression:

Stored size: 271 Bytes

Contents

# frozen_string_literal: true

RSpec.shared_examples 'autocorrect' do |original, corrected|
  it "autocorrects `#{original}` to `#{corrected}`" do
    autocorrected = autocorrect_source(original, 'spec/foo_spec.rb')

    expect(autocorrected).to eql(corrected)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubocop-rspec-1.35.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.34.1 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.34.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.33.0 spec/shared/autocorrect_behavior.rb