Oh, he removed the block.<br><br>describe PeepCode do<br>
it "should be awsome" do<br> end<br>
end<br><br>describe PeepCode do<br> it "should be awsome"<br>end<br><br>I'm still haven't solved --format with specing.<br><br><div><span class="gmail_quote">On 9/16/07, <b class="gmail_sendername">David Chelimsky
</b> <<a href="mailto:dchelimsky@gmail.com">dchelimsky@gmail.com</a>> 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 <
<a href="mailto:omen.king@gmail.com">omen.king@gmail.com</a>> wrote:<br>> I'm going through Peepcode's Rspec Basics for an overview.<br>><br>> He's just doing a simple spec:<br>><br>> class PeepCode
<br>> end<br>><br>> describe PeepCode do<br>> it "should be awsome" do<br>> end<br>> end<br>><br>> So running spec spec/simple_spec.rb should produce according to his screen<br>> cast:
<br>> 1 example, 0 failures, 1 not implemented<br><br>I'm pretty sure that I saw the peep code and it showed the right thing<br>here - but I don'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 "Not implemented" with no block:<br><br>describe PeepCode do<br> it "should be awesome" # 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> it "should be awesome" do<br> pending("for some reason")<br> ...<br> end<br>end<br><br>or<br><br>describe PeepCode do<br> it "should be awesome" do<br>
pending("for some reason") do<br> ...<br> end<br> ...<br> end<br>end<br><br>but an empty block (as in your example) just passes.<br><br>HTH,<br>David<br><br>><br>> but I only recieve:<br>> 1 example, 0 failures
<br>><br>> Also spec spec/simple_spec.rb --format will fail<br>> /usr/local/lib/ruby/1.8/optparse.rb:451:in `parse': missing<br>> argument: --format (OptionParser::MissingArgument)<br>><br>> RSpec 1.0.8
<br>> ZenTest 3.6.1<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>><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