[rspec-users] running a specific describe block

David Chelimsky
Wed, 12 Mar 2008 17:41:20 -0000

On Wed, Mar 12, 2008 at 5:22 PM, Jay Donnell <jaydonnell at yahoo.com>
wrote:
> 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

Seems like a nested-example-group bug. Would you kindly submit this as
a report to http://rspec.lighthouseapp.com?

Cheers,
David

>
>
>
>
>
>
>  ----- Original Message ----
>  From: James Deville <james.deville at gmail.com>
>  To: rspec-users <rspec-users at rubyforge.org>
>  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 Donnell wrote:
>
>  > I use a lot of nested describe blocks and am wondering if there is a
>  > way to run a specific describe block similar to the -e option for
>  > running specific examples.
>  >
>  > Jay
>  >
>  >
>  >
>  >
>  >
>  >
____________________________________________________________________________________
>  > 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
>  > rspec-users at rubyforge.org
>  > http://rubyforge.org/mailman/listinfo/rspec-users
>
>
>
>  James Deville
>  http://devillecompanies.org
>  james.deville at gmail.com
>  rspec r3172
>  rspec_on_rails r3172
>  rails r8331
>
>
>
>
>  _______________________________________________
>  rspec-users mailing list
>  rspec-users at rubyforge.org
>  http://rubyforge.org/mailman/listinfo/rspec-users
>
>
>
>
>
>
>
____________________________________________________________________________________
>  Never miss a thing.  Make Yahoo your home page.
>  http://www.yahoo.com/r/hs