Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve RSpec/SubjectStub cop #770

Merged
merged 10 commits into from Jun 10, 2019
Next

Use consistent wording in docstrings

  • Loading branch information...
pirj committed May 15, 2019
commit 069a7f9e69115de72269ee873edd8b505fffcac6
@@ -3,7 +3,7 @@
RSpec.describe RuboCop::Cop::RSpec::SubjectStub do
subject(:cop) { described_class.new }

it 'complains when subject is stubbed' do
it 'flags when subject is stubbed' do
expect_offense(<<-RUBY)
describe Foo do
subject(:foo) { described_class.new }
@@ -20,7 +20,7 @@
RUBY
end

it 'complains when subject is mocked' do
it 'flags when subject is mocked' do
expect_offense(<<-RUBY)
describe Foo do
subject(:foo) { described_class.new }
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.