Oh, he removed the block.<br><br>describe PeepCode do<br>
&nbsp; it &quot;should be awsome&quot; do<br>&nbsp; end<br>
end<br><br>describe PeepCode do<br>&nbsp; it &quot;should be awsome&quot;<br>end<br><br>I&#39;m still haven&#39;t solved --format with specing.<br><br><div><span class="gmail_quote">On 9/16/07, <b class="gmail_sendername">David Chelimsky
</b> &lt;<a href="mailto:dchelimsky@gmail.com">dchelimsky@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On 9/16/07, Andrew WC Brown &lt;
<a href="mailto:omen.king@gmail.com">omen.king@gmail.com</a>&gt; wrote:<br>&gt; I&#39;m going through Peepcode&#39;s Rspec Basics for an overview.<br>&gt;<br>&gt; He&#39;s just doing a simple spec:<br>&gt;<br>&gt; class PeepCode
<br>&gt;&nbsp;&nbsp;end<br>&gt;<br>&gt; describe PeepCode do<br>&gt;&nbsp;&nbsp; it &quot;should be awsome&quot; do<br>&gt;&nbsp;&nbsp; end<br>&gt;&nbsp;&nbsp;end<br>&gt;<br>&gt; So running spec spec/simple_spec.rb should produce according to his screen<br>&gt; cast:
<br>&gt; 1 example, 0 failures, 1 not implemented<br><br>I&#39;m pretty sure that I saw the peep code and it showed the right thing<br>here - but I don&#39;t have time to go through it right this minute to<br>verify. That said, if that IS what the screencast says then the
<br>screencast is wrong. You can get &quot;Not implemented&quot; with no block:<br><br>describe PeepCode do<br>&nbsp;&nbsp;it &quot;should be awesome&quot; # no block passed to the #it method<br>end<br><br>or by using the pending method inside the block:
<br><br>describe PeepCode do<br>&nbsp;&nbsp;it &quot;should be awesome&quot; do<br>&nbsp;&nbsp;&nbsp;&nbsp;pending(&quot;for some reason&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;...<br>&nbsp;&nbsp;end<br>end<br><br>or<br><br>describe PeepCode do<br>&nbsp;&nbsp;it &quot;should be awesome&quot; do<br>
&nbsp;&nbsp;&nbsp;&nbsp;pending(&quot;for some reason&quot;) do<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br>&nbsp;&nbsp;&nbsp;&nbsp;end<br>&nbsp;&nbsp;&nbsp;&nbsp;...<br>&nbsp;&nbsp;end<br>end<br><br>but an empty block (as in your example) just passes.<br><br>HTH,<br>David<br><br>&gt;<br>&gt; but I only recieve:<br>&gt; 1 example, 0 failures
<br>&gt;<br>&gt; Also spec spec/simple_spec.rb --format will fail<br>&gt; /usr/local/lib/ruby/1.8/optparse.rb:451:in `parse&#39;: missing<br>&gt; argument: --format (OptionParser::MissingArgument)<br>&gt;<br>&gt; RSpec 1.0.8
<br>&gt; ZenTest 3.6.1<br>&gt;<br>&gt; _______________________________________________<br>&gt; rspec-users mailing list<br>&gt; <a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br>&gt; <a href="http://rubyforge.org/mailman/listinfo/rspec-users">
http://rubyforge.org/mailman/listinfo/rspec-users</a><br>&gt;<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>Monsterbox Productions<br>putting small businesses on-line<br><br>1319 Victoria Avenue East<br>Thunder Bay, Ontario P7C 1C3
<br>Canada<br><br>Andrew WC Brown<br>web-developer and owner<br><a href="mailto:andrew@monsterboxpro.com">andrew@monsterboxpro.com</a><br>P: 807-626-9009<br>F: 807-624-2705