OK. i added two tests one for zero and one for negative sloped lines.  I've
pushed it up as well. I didn't really pull out the common fixture code so
if you want to do that, by all means go ahead.


On Tue, Dec 3, 2013 at 6:33 PM, Trever M. Shick <trevershick@gmail.com>wrote:

> OK.  I had tried adjusting the plan estimate in that fashion to no avail
> but I think that perhaps the objectIds were different.  At any rate, i’ll
> give that a try tomorrow morning.
>
> I plan on pushing this branch to test14 in the morning for acceptance by
> Allen.
>
>
> --
> Trever M. Shick
> Sent with Airmail <http://airmailapp.com/tracking>
> ------------------------------
> From: Joel Sherriff Joel Sherriff <notifications@github.com>
> Reply: RallySoftware/app-catalog
> reply@reply.github.com
> Date: December 3, 2013 at 5:08:11 PM
> To: RallySoftware/app-catalog app-catalog@noreply.github.com
> Subject:  Re: [app-catalog] DE18732: truncate scope at 1.25 X max Ideal
> (#30)
>
>
> > @@ -48,4 +48,45 @@ describe 'Rally.apps.charts.burndown.BurnDownApp', ->
> > rallychartAdds = _.where(_.map(addSpy.args, (arg) -> arg[1]), xtype:
> 'rallychart').length
> > expect(rallychartAdds).toBe 1
> >
>
> wellll....that's a little harder...this should do it.
>
> snapshots =
> "[{'_ValidFrom':'2013-11-03T23:29:44.672Z','_ValidTo':'2013-11-04T23:29:44.672Z',ObjectID:14600336849,Project:4527959100,PlanEstimate:10},
>
> {'_ValidFrom':'2013-11-04T23:29:44.672Z','_ValidTo':'9999-01-01T00:00:00.000Z',ObjectID:14600336849,Project:4527959100,PlanEstimate:1}]"
>
>
> The ObjectID is the same for both (same artifact) and the _ValidTo of the
> 1st is the same as the _ValidFrom of the 2nd and the PlanEstimate of the
> 1st is > than the 2nd (decreasing Scope), which should give you a negative
> prediction line.
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/RallySoftware/app-catalog/pull/30/files#r8077830
>
>