<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">Brian, before we do a release I want to get this documented. Do you want to take a crack at it?
<br></blockquote><br>Sure.<br><br><div><span class="gmail_quote">On 9/22/06, <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/22/06, David Chelimsky <<a href="mailto:dchelimsky@gmail.com">dchelimsky@gmail.com</a>> wrote:<br>> On 9/22/06, Brian Takita <<a href="mailto:brian.takita@gmail.com">brian.takita@gmail.com</a>> wrote:<br>
> > Hello,<br>> ><br>> > I added a patch that adds stubbing support to rspec.<br>> ><br>> > <a href="http://rubyforge.org/tracker/index.php?func=detail&aid=5844&group_id=797&atid=3151">
http://rubyforge.org/tracker/index.php?func=detail&aid=5844&group_id=797&atid=3151</a><br>> ><br>> > context "A consumer of a stub" do<br>> ><br>> > specify "should be able to stub objects" do
<br>> > obj = Object.new<br>> > stub(obj).method(:foobar).with {:return_value}<br>> > obj.foobar.should_equal :return_value<br>> > end<br>> ><br>> > end<br>> ><br>> > It also resets the object to its prestubb state after the spec is finished.
<br>> > This would allow stubbing of class methods like Stubby or flexstub.<br>><br>> This is beautiful. Thanks Brian. I started to commit it but there are<br>> a bunch of new warnings and coverage went down to by 3%. If you can
<br>> eliminate the warnings and address the coverage issues and get "rake<br>> pre_commit" to run, feel free to commit this. Otherwise I'll look at<br>> it as time allows, but that won't likely be for a couple of days.
<br><br>Well, I found the time. It wasn't much. I just don't know how to use<br>patch properly, so for some reason all code in the new files appeared<br>twice, hence the warnings and the coverage.<br><br>I've committed this and you can all experience the love if you check
<br>out the trunk.<br><br>Brian, before we do a release I want to get this documented. Do you<br>want to take a crack at it?<br><br>Release coming no later than 2 weeks (very busy until that time frame)<br>but possibly sooner.
<br><br>Cheers,<br>David<br><br><br><br>><br>> Thanks again. This is great.<br>><br>> David<br>><br>> ><br>> > Brian<br>> ><br>> > _______________________________________________<br>
> > rspec-devel mailing list<br>> > <a href="mailto:rspec-devel@rubyforge.org">rspec-devel@rubyforge.org</a><br>> > <a href="http://rubyforge.org/mailman/listinfo/rspec-devel">http://rubyforge.org/mailman/listinfo/rspec-devel
</a><br>> ><br>> ><br>><br>_______________________________________________<br>rspec-devel mailing list<br><a href="mailto:rspec-devel@rubyforge.org">rspec-devel@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/rspec-devel">
http://rubyforge.org/mailman/listinfo/rspec-devel</a><br></blockquote></div><br>