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

Add support for "specify" and "example" declarations #12

Merged

Conversation

thibaudgg
Copy link
Contributor

This patch adds support for specify and example declarations, which are aliases for it in RSpec.

This is useful for people (like me) who prefer to use specify or example over it in their RSpec tests.

RSpec method aliases are defined here:
https://github.com/rspec/rspec-core/blob/80bdf067758678ee32191c04f4d479031e20606d/lib/rspec/core/example_group.rb#L53-L67

Close #11

This patch adds support for "specify" and "example" declarations, which
are aliases for "it" in RSpec.

This is useful for people (like me) who prefer to use "specify" or
"example" over "it" in their RSpec tests.

RSpec method aliases are defined here:
https://github.com/rspec/rspec-core/blob/80bdf067758678ee32191c04f4d479031e20606d/lib/rspec/core/example_group.rb#L53-L67

Close st0012#11
Copy link
Owner

@st0012 st0012 left a comment

Choose a reason for hiding this comment

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

Thank you!

@st0012 st0012 added the enhancement New feature or request label Nov 28, 2023
@st0012 st0012 merged commit 499317a into st0012:main Nov 28, 2023
3 checks passed
@thibaudgg
Copy link
Contributor Author

@st0012 thanks for the quick merge 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding support for "specify"and "example" instead of only "it"
2 participants