list rake task can't cope with nested model tests
Reported by Tom | July 10th, 2008 @ 12:39 PM
Comments and changes to this ticket
-
Tom July 10th, 2008 @ 12:41 PM
Hi, apologies if this is already covered somewhere, but I couldn't see it. Also this is my first attempt at contributing to a project, so again apologies if I get it wrong!
Just started using shoulda, and i tried the outputting of the specs using the rake shoulda:list task and it baulked at one of our tests which is in a subdirectory with an "uninitialized constant exception".
So I wrote a new one... please find attached.
Hope it's helpful, ignore if not!
Jaba
-
soleone (at gmail) September 20th, 2008 @ 12:59 AM
- → Tag changed from rake to rake
I have the same problem too!
And other than that it would be really nice if the tests would be shown as specs:
e.g.
class ArticleTest < Test::Unit context "create" do content "over xml" do should "succeed when provided with a title and a body" do ... end end end endFrom this the rake task should generate:
Article - create over xml should succeed when provided with a title and a body
or maybe:
Article create
over xml - should succeed when provided with a title and a bodyThis would be really neat and make rspec for me nearly obsolete (I like their HTML output of the specs though, but text is good enough)
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
