spec icon indicating copy to clipboard operation
spec copied to clipboard

Make "humanification" of class names optional

Open bitprophet opened this issue 14 years ago • 3 comments

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.

bitprophet avatar Nov 08 '11 00:11 bitprophet

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 :smile:

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

Thanks! Fotis

fgimian avatar Apr 23 '15 06:04 fgimian

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

fgimian avatar Apr 24 '15 05:04 fgimian

@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.

bitprophet avatar May 01 '15 02:05 bitprophet