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

Allow configuring enabled methods in . #593

Merged
merged 1 commit into from
Apr 6, 2018

Conversation

Darhazer
Copy link
Member

@Darhazer Darhazer commented Apr 6, 2018

Some teams may prefer using some of the capybara methods (like feature and scenario) while enforce using before and let for the setup.

This will also fix cases like #538 by allowing the usage of feature.
(We should also allow ignoring DescribeClass bases on the type meta-data)

cc: @rspeicher


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.
  • Added an entry to the Changelog if the new code introduces user-observable changes.
  • The build (bundle exec rake) is passing.

If you have created a new cop:

  • Added the new cop to config/default.yml.
  • The cop includes examples of good and bad code.
  • You have tests for both code that should be reported and code that is good.

@Darhazer Darhazer requested a review from bquorning April 6, 2018 13:24
Copy link
Collaborator

@bquorning bquorning left a comment

Choose a reason for hiding this comment

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

I like it. Just a few comments regarding the comment.

# to make it obvious that the test uses capybara, while still disable
# the rest of the methods, like given (alias for let) or background
# (alias for before). You can configure which of the methods to be
# enabled by using the EnabledMethods configuration option.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think capybara should be capitalised, i.e. Capybara.

Also shouldn’t the method names be wrapped in e.g. backticks?

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

@Darhazer Darhazer force-pushed the allow-configuring-of-feature-methods branch from fb4dd05 to ab51707 Compare April 6, 2018 18:23
@bquorning
Copy link
Collaborator

bquorning commented Apr 6, 2018

According to https://status.circleci.com/ Circle’s workflows aren’t working at the moment. Apparently there’s no such thing as the perfect CI.

@Darhazer Darhazer merged commit fa07480 into master Apr 6, 2018
@Darhazer Darhazer deleted the allow-configuring-of-feature-methods branch April 6, 2018 19:25
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.

2 participants