Re: [rspec-users] testing controller instance variables

2009-07-17 Thread Rick DeNatale
On Fri, Jul 17, 2009 at 1:08 PM, Leo Godin wrote: > Thanks, > That works at least to the point where it is testing the variable. > However, it is calling it NIL.  How do I tell the test to make it be > 3? > > In the controller I have: > �...@num_found = @purchase_requests.size > > This is what I tr

Re: [rspec-users] testing controller instance variables

2009-07-17 Thread Leo Godin
Thanks, That works at least to the point where it is testing the variable. However, it is calling it NIL. How do I tell the test to make it be 3? In the controller I have: @num_found = @purchase_requests.size This is what I tried in the spec: it "should count the number of purchase requests

Re: [rspec-users] [ANN] rspec 1.2.8 Released

2009-07-17 Thread David Chelimsky
On Thu, Jul 16, 2009 at 11:39 PM, Ben Mabey wrote: > David Chelimsky wrote: >> >> rspec version 1.2.8 has been released! >> >> * >> * >> * >> * >> * >> >> Behaviour Driven Development for Ruby. >>