Re: [rspec-users] be_valid method undefined on model spec

2010-11-25 Thread David Chelimsky
On Nov 25, 2010, at 12:31 PM, Pedro Brasileiro wrote: > Try Deal.new.should be_valid? No, don't. That doesn't work, and what I wrote below does :) Cheers, David > > On Thu, Nov 25, 2010 at 9:19 AM, David Chelimsky wrote: > On Tue, Nov 23, 2010 at 11:32 PM, Rick wrote: > > Hi all, > > > > I'm

Re: [rspec-users] be_valid method undefined on model spec

2010-11-25 Thread Pedro Brasileiro
Try Deal.new.should be_valid? On Thu, Nov 25, 2010 at 9:19 AM, David Chelimsky wrote: > On Tue, Nov 23, 2010 at 11:32 PM, Rick wrote: > > Hi all, > > > > I'm using rspec-rails and have a simple model spec which fails with > > the following trace: > > > > undefined local variable or method `be_va

Re: [rspec-users] be_valid method undefined on model spec

2010-11-25 Thread David Chelimsky
On Tue, Nov 23, 2010 at 11:32 PM, Rick wrote: > Hi all, > > I'm using rspec-rails and have a simple model spec which fails with > the following trace: > > undefined local variable or method `be_valid' for # 0x0102c6e820> (NameError) > > Full trace: https://gist.github.com/713164 > > The spec i

[rspec-users] be_valid method undefined on model spec

2010-11-25 Thread Rick
Hi all, I'm using rspec-rails and have a simple model spec which fails with the following trace: undefined local variable or method `be_valid' for # (NameError) Full trace: https://gist.github.com/713164 The spec is simple: require 'spec_helper' describe Deal do describe "it should not all