Re: [rspec-users] Odd Date-based spec failing

2008-06-30 Thread Pat Maddox
What do you see when you puts the values of end_date, start_date, and Date.today inside of #percentage_complete? On Mon, Jun 30, 2008 at 7:43 PM, Matt Darby <[EMAIL PROTECTED]> wrote: > On Jul 1, 2008, at 10:10 PM, Camilo Torres wrote: > >> It seems your Phase.percentage_complete is not working as

Re: [rspec-users] Odd Date-based spec failing

2008-06-30 Thread Matt Darby
On Jul 1, 2008, at 10:10 PM, Camilo Torres wrote: It seems your Phase.percentage_complete is not working as you expect. It clearly returns 100 when you are specting 83. The test clearly said that. ¿What is the implementation of your percentage_complete method? It only fails when run via 'rake

Re: [rspec-users] Odd Date-based spec failing

2008-06-30 Thread Camilo Torres
It seems your Phase.percentage_complete is not working as you expect. It clearly returns 100 when you are specting 83. The test clearly said that. ¿What is the implementation of your percentage_complete method? 2008/7/1 Matt Darby <[EMAIL PROTECTED]>: > Hrm. > > I have a spec for a model 'Phase'.

[rspec-users] Odd Date-based spec failing

2008-06-30 Thread Matt Darby
Hrm. I have a spec for a model 'Phase'. a Phase has a start and end date, and a method 'percentage_complete' that calculates the percentage of time that has already elapsed between said start and end dates. This spec passes as expected: module PhaseHelper def valid_attributes {

Re: [rspec-users] HTTPERF + RSPEC + BONG = euphoric development

2008-06-30 Thread Ben Mabey
john wrote: My coworker and I just discovered http://github.com/topfunky/bong/tree/master/lib/bong.rb It's a kool script written by topfunky himself that wraps httperf in ruby. It formats the input URLs and the results and yaml (so nice). Any thoughts on how to implement this? -

[rspec-users] HTTPERF + RSPEC + BONG = euphoric development

2008-06-30 Thread john
My coworker and I just discovered http://github.com/topfunky/bong/tree/master/lib/bong.rb It's a kool script written by topfunky himself that wraps httperf in ruby. It formats the input URLs and the results and yaml (so nice). Any thoughts on how to implement this? _

Re: [rspec-users] Stopping Example Execution?

2008-06-30 Thread Britt Mileshosky
n Sun, Jun 29, 2008 at 12:20 PM, David Chelimsky wrote: On Jun 29, 2008, at 11:18 AM, Britt Mileshosky wrote: However, do you see where something like a return statement or end example statement could be beneficial? If you are working from the top down with your controller action execution, the

Re: [rspec-users] Stopping example execution?

2008-06-30 Thread Zach Dennis
On Sun, Jun 29, 2008 at 12:20 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Jun 29, 2008, at 11:18 AM, Britt Mileshosky wrote: > >> However, do you see where something like a return statement or end example >> statement could be beneficial? >> If you are working from the top down with your c