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
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
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'.
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
{
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?
-
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?
_
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
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