Sha256: 6bcf6bdda6dd683c4ff9cba6a83993f627763fcec4e9636ee31def463e0b05fe

Contents?: true

Size: 245 Bytes

Versions: 11

Compression:

Stored size: 245 Bytes

Contents

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

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rubocop-rspec-1.16.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.15.1 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.15.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.14.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.13.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.12.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.11.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.10.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.9.1 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.9.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.8.0 spec/shared/autocorrect_behavior.rb