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.32.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.31.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.30.1 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.30.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.29.1 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.29.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.28.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.27.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.26.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.25.1 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.25.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.24.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.23.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.22.2 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.22.1 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.22.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.21.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.20.1 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.20.0 spec/shared/autocorrect_behavior.rb
rubocop-rspec-1.19.0 spec/shared/autocorrect_behavior.rb