Re: [rspec-users] Comparing new models

2008-04-07 Thread David Chelimsky
On Sun, Apr 6, 2008 at 4:33 PM, Rare <[EMAIL PROTECTED]> wrote: > Hi all, > > I am trying to test that a view file in Rails is being sent a new > empty model (Product.new) in my rspec test, below is my code. I've > tried comparing them with ==, ===, equal, eql none work. I just get an > error (

[rspec-users] Comparing new models

2008-04-07 Thread Rare
Hi all, I am trying to test that a view file in Rails is being sent a new empty model (Product.new) in my rspec test, below is my code. I've tried comparing them with ==, ===, equal, eql none work. I just get an error (see below code). I guess it's the condition tester (e.g. ==) that is incorrect,