James Deville wrote:
> Using the -e option from the command line, you can also specify a
> string which is to be run, this is a way to run only one describe
> block, or one it block. The rake task method suggested by Edvard is
> the other option
I'm having problems with the -e option - it doesn't recognise the string
and so runs no tests. I have several nested describe blocks, and i want
to run one of the top-level ones:
describe "add_descendants_from_xml" do
before do
...
...
end
I'm trying to run just this block like so:
ruby script/spec spec/models/property_spec.rb --format specdoc -c -e
"add_descendants_from_xml"
(the linebreak after -e isn't in my command, it's just split to fit this
text field)
And it runs 0 tests. Can anyone tell me what i'm doing wrong?
thanks
max
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users