Skip to content

Improve ruby desc snippet #279

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

Merged
merged 1 commit into from
Sep 22, 2013
Merged

Improve ruby desc snippet #279

merged 1 commit into from
Sep 22, 2013

Conversation

bruno-
Copy link
Contributor

@bruno- bruno- commented Sep 21, 2013

Instead of dummy text, first argument for describe becomes a class name derived from a spec file name. Example:
file: some_class_spec.rb
describe argument: SomeClass

This works pretty much the same as getting the class name for ruby cla snippets.
The only difference is that the idiomatic '_spec' is removed from spec file name, before converting to class name.

Let me know if more explanation or examples are needed!

Instead of dummy text, first argument for `describe` becomes a class
name derived from a file name. Example:
file:              some_class_spec.rb
describe argument: SomeClass
@ghost ghost assigned taq Sep 21, 2013
iurifq added a commit that referenced this pull request Sep 22, 2013
@iurifq iurifq merged commit 58231ac into honza:master Sep 22, 2013
@iurifq
Copy link
Collaborator

iurifq commented Sep 22, 2013

thanks 👍

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