We saw some annoying behavior related to pending tests. Maybe you could delete it and rerun your specs?<br><br>An error typically indicates that you have some sort of error in your code - failing tests should not cause rake to abort.
<br><br>Stefan<br><br><div><span class="gmail_quote">2007/11/25, James B. Byrne &lt;<a href="mailto:byrnejb@harte-lyne.ca">byrnejb@harte-lyne.ca</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sorry to be such a pest but I am trying to learn Ruby, Rails and RSpec all<br>at one go and it is a bit overwhelming.&nbsp;&nbsp;I have previously completed the<br>depot tutorial in the Agile Web Dev with rails book and now I am trying do
<br>do it again using RSpec.<br><br>What I would like to know now is why I am getting a rake failure error at<br>the end of every spec:models run.&nbsp;&nbsp;Is this the expected behaviour when a<br>test / expectation fails?<br><br>
---&gt;<br><br>C:\var\RSpec\depot&gt;rake spec:models<br>(in C:/var/RSpec/depot)<br>NOTICE:&nbsp;&nbsp;CREATE TABLE will create implicit sequence &quot;products_id_seq&quot; for<br>serial<br> column &quot;<a href="http://products.id">
products.id</a>&quot;<br>NOTICE:&nbsp;&nbsp;CREATE TABLE / PRIMARY KEY will create implicit index<br>&quot;products_pkey&quot; f<br>or table &quot;products&quot;<br><br>Product<br>- should have a valid image uri (PENDING: Not Yet Implemented)
<br>- should have a description<br>- should have a title (FAILED - 1)<br><br>Pending:<br>Product should have a valid image uri (Not Yet Implemented)<br><br>1)<br>&#39;Product should have a title&#39; FAILED<br>expected valid? to return true, got false
<br>./spec/models/product_spec.rb:11:<br><br>Finished in 0.75 seconds<br><br>3 examples, 1 failure, 1 pending<br>rake aborted!<br>Command ruby -I<br>&quot;C:/var/RSpec/depot/vendor/plugins/rspec/lib&quot;<br>&quot;C:/var/RSpec/depot/vendor/plugins/rspec/bin/spec&quot;
<br>&quot;spec/models/product_spec.rb&quot;<br> --options<br>&quot;C:/var/RSpec/depot/config/../spec/spec.opts&quot; failed<br><br>(See full trace by running task with --trace)<br><br>C:\var\RSpec\depot&gt;rake spec:models --trace
<br>(in C:/var/RSpec/depot)<br>** Invoke spec:models (first_time)<br>** Invoke db:test:prepare (first_time)<br>** Invoke environment (first_time)<br>** Execute environment<br>** Execute db:test:prepare<br>** Invoke db:test:clone (first_time)
<br>** Invoke db:schema:dump (first_time)<br>** Invoke environment<br>** Execute db:schema:dump<br>** Invoke db:test:purge (first_time)<br>** Invoke environment<br>** Execute db:test:purge<br>** Execute db:test:clone<br>** Invoke db:schema:load (first_time)
<br>** Invoke environment<br>** Execute db:schema:load<br>NOTICE:&nbsp;&nbsp;CREATE TABLE will create implicit sequence &quot;products_id_seq&quot; for<br>serial column &quot;<a href="http://products.id">products.id</a>&quot;<br>NOTICE:&nbsp;&nbsp;CREATE TABLE / PRIMARY KEY will create implicit index
<br>&quot;products_pkey&quot; for table &quot;products&quot;<br>** Execute spec:models<br><br>Product<br>- should have a valid image uri (PENDING: Not Yet Implemented)<br>- should have a description<br>- should have a title (FAILED - 1)
<br><br>Pending:<br>Product should have a valid image uri (Not Yet Implemented)<br><br>1)<br>&#39;Product should have a title&#39; FAILED<br>expected valid? to return true, got false<br>./spec/models/product_spec.rb:11:<br>
<br>Finished in 0.563 seconds<br><br>3 examples, 1 failure, 1 pending<br>rake aborted!<br>Command ruby -I&quot;C:/var/RSpec/depot/vendor/plugins/rspec/lib&quot;<br>&quot;C:/var/RSpec/depot/vendor/plugins/rspec/bin/spec&quot; &quot;spec/models/
<br>product_spec.rb&quot; --options &quot;C:/var/RSpec/depot/config/../spec/spec.opts&quot;<br>failed<br>C:/var/RSpec/depot/vendor/plugins/rspec/lib/spec/rake/<br>spectask.rb:173:in `define&#39;<br>C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-
0.7.3/lib/<br>rake.rb:823:in `verbose&#39;<br>C:/var/RSpec/depot/vendor/plugins/rspec/lib/spec/rake/<br>spectask.rb:142:in `define&#39;<br>C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/<br>rake.rb:392:in `call&#39;
<br>C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/<br>rake.rb:392:in `execute&#39;<br>C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/<br>rake.rb:392:in `each&#39;<br>C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-
0.7.3/lib/<br>rake.rb:392:in `execute&#39;<br>C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/<br>rake.rb:362:in `invoke&#39;<br>C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/<br>rake.rb:355:in `synchronize&#39;
<br>C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/<br>rake.rb:355:in `invoke&#39;<br>C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/<br>rake.rb:1739:in `top_level&#39;<br>C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-
0.7.3/lib/<br>rake.rb:1739:in `each&#39;<br>C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/<br>rake.rb:1739:in `top_level&#39;<br>C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/<br>rake.rb:1761:in `standard_exception_handling&#39;
<br>C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/<br>rake.rb:1733:in `top_level&#39;<br>C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/<br>rake.rb:1711:in `run&#39;<br>C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-
0.7.3/lib/<br>rake.rb:1761:in `standard_exception_handling&#39;<br>C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/<br>rake.rb:1708:in `run&#39;<br>C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7
<br>C:/usr/local/bin/ruby/bin/rake.bat:20:in `load&#39;<br>C:/usr/local/bin/ruby/bin/rake.bat:20<br><br>C:\var\RSpec\depot&gt;<br>&lt;---<br><br><br>--<br>***&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;E-Mail is NOT a SECURE channel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;***<br>James B. Byrne&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mailto:
<a href="mailto:ByrneJB@Harte-Lyne.ca">ByrneJB@Harte-Lyne.ca</a><br>Harte &amp; Lyne Limited&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.harte-lyne.ca">http://www.harte-lyne.ca</a><br>9 Brockley Drive&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vox: +1 905 561 1241<br>
Hamilton, Ontario&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fax: +1 905 561 0757<br>Canada&nbsp;&nbsp;L8E 3C3<br><br>_______________________________________________<br>rspec-users mailing list<br><a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org
</a><br><a href="http://rubyforge.org/mailman/listinfo/rspec-users">http://rubyforge.org/mailman/listinfo/rspec-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Bekk Open Source<br><a href="http://boss.bekk.no">
http://boss.bekk.no</a>