This doesn’t work for me on 1.1.3
I have something like this:
describe Support do
describe “attached image” do
it “should validate presence of attachment” do
# test stuff …
end
it "should validate that attachment is an image" do
# test stuff ...
end
it "should cleanly save attachment" do
# test stuff ...
end
end
end
Here’s what I’m doing and the results
It doesn’t test when I use the text from the describe block
jays-imac:ov2 jay$ ruby spec/models/support_spec.rb -e “attached image”
Finished in 0.015778 seconds
0 examples, 0 failures
it works fine with the test from an example
jays-imac:ov2 jay$ ruby spec/models/support_spec.rb -e “should validate
presence of attachment”
.
Finished in 0.379727 seconds
1 example, 0 failures
----- Original Message ----
From: James D. [email protected]
To: rspec-users [email protected]
Sent: Tuesday, March 11, 2008 9:26:13 PM
Subject: Re: [rspec-users] running a specific describe block
the -e option should run a describe block if the string passed matches
a describe block
On Feb 29, 2008, at 10:57 AM, Jay D. wrote:
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users
James D.
http://devillecompanies.org
[email protected]
rspec r3172
rspec_on_rails r3172
rails r8331
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.