Sha256: c97096339fe652a09a2e3eab81557a6df2005cd21905c7b14262350842caa96f

Contents?: true

Size: 240 Bytes

Versions: 23

Compression:

Stored size: 240 Bytes

Contents

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

23 entries across 23 versions & 1 rubygems

Version Path
rubocop-rspec-1.18.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.17.1 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.17.0 spec/shared/autocorrect_behavior.rb