Skip to content
#

rubocop

Here are 225 public repositories matching this topic...

donv
donv commented Sep 22, 2020

Is your feature request related to a problem? Please describe.

Gemspec/RequiredRubyVersion enforces that gemspec.required_ruby_version is set and then complains that it differs from TargetRubyVersion in .rubocop.yml even if it is not specified in .rubocop.yml.

Having to specify TargetRubyVersion in .rubocop.yml in addition to gemspec.required_ruby_version duplicates the information.

lsimoneau
lsimoneau commented Mar 22, 2017

I really like enforcing one expectation per example. But with RSpec's exception matching, you need two expect calls if you want to assert something about an exception:

expect { my_code }.to raise_error(MyErrorType) do |error|
  expect(error.message).to match /something went wrong/
end

There's no way to match against the error message without first wrapping the call, and RSpec o

Improve this page

Add a description, image, and links to the rubocop topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the rubocop topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.