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

Make "humanification" of class names optional #13

Open
bitprophet opened this issue Nov 8, 2011 · 3 comments
Open

Make "humanification" of class names optional #13

bitprophet opened this issue Nov 8, 2011 · 3 comments

Comments

@bitprophet
Copy link
Owner

Right now, the old Spec plugin's behavior of turning CamelCaseNames into Camel case names is still in effect. I don't really like this, but recognize it can be useful in spots when you're not actually describing a class per se.

Make it optional somehow -- just need an option which cascades down to camelcase2spec telling it to only do the prefix/suffix changes.

@fgimian
Copy link

fgimian commented Apr 23, 2015

Hello, I was about to post the same feature request here as I have a similar request. My test class is called TestRabbitMQ and I get this:


Rabbit m q
- compression property
- compression snappy
- compression switcharoo
- compression zlib
...

Hehehe 😄

Would it be possible to disable this behaviour or allow for exceptions?

Thanks!
Fotis

@fgimian
Copy link

fgimian commented Apr 24, 2015

Actually, an easy trick to getting over this is using a docstring for such classes. I'm really loving this spec addon, makes my test output so much prettier.

Thanks!
Fotis

@bitprophet
Copy link
Owner Author

@fgimian Thanks! and yea, I tend to use docstrings as the workaround, though usually to get around truly unavoidable things like wanting apostrophes or such.

bendikro added a commit to bendikro/spec that referenced this issue Jul 14, 2017
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

No branches or pull requests

2 participants