Skip to content

Conversation

@pirj
Copy link
Member

@pirj pirj commented Oct 27, 2020

'autocorrect' shared example group does not pass a correct file name to
the cop, and if this cop is tweaked to only inspect factories, this spec
fails because the default file name/path is skipped, since it's not a
factory path.

#1063 depends on this


Before submitting the PR make sure the following are checked:

  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • [-] Updated documentation.
  • [-] Added an entry to the CHANGELOG.md if the new code introduces user-observable changes.
  • The build (bundle exec rake) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).

'autocorrect' shared example group does not pass a correct file name to
the cop, and if this cop is tweaked to only inspect factories, this spec
fails because the default file name/path is skipped, since it's not a
factory path.
@pirj pirj self-assigned this Oct 27, 2020
@pirj pirj mentioned this pull request Oct 27, 2020
9 tasks
@pirj pirj requested review from Darhazer and bquorning October 27, 2020 22:28
@pirj pirj mentioned this pull request Oct 27, 2020

RSpec/ExampleLength:
Exclude:
- spec/rubocop/cop/rspec/factory_bot/attribute_defined_statically_spec.rb
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's ~ [45/30].

@pirj pirj added this to the 2.0 milestone Oct 27, 2020
@pirj pirj merged commit abe73f0 into release-2.0 Oct 28, 2020
@pirj pirj deleted the refactor-a-spec branch October 28, 2020 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants