[rspec-users] Validations aren't being performed when running 'rspec spec'

2011-02-23 Thread Tom Milewski
Hello, When I run 'rspec spec/models' everything runs beautifully. When I run 'rspec spec/controllers' everything also runs beautifully. When I run 'rspec spec' the models seem to forget that the records need to pass the validations before being saved to the database. This is consistent across al

Re: [rspec-users] Validations aren't being performed when running 'rspec spec'

2011-02-24 Thread Tom Milewski
ActiveRecord::RecordInvalid: Validation failed: Name can't be blank # ./spec/models/agent_spec.rb:35:in `block (3 levels) in ' Everything passes when running model specs with .build. Thanks again! On Feb 24, 8:48 am, David Chelimsky wrote: > On Feb 23, 2011, at 9:29 AM, Tom

Re: [rspec-users] Validations aren't being performed when running 'rspec spec'

2011-02-24 Thread Tom Milewski
I should also note that if I replace ".should have(1).error_on(:name)" with, simply, ".should be_valid". The same issues occur. All specs (except when only running models) pass when they shouldn't be. On Feb 24, 8:48 am, David Chelimsky wrote: > On Feb 23, 2011, at

Re: [rspec-users] Validations aren't being performed when running 'rspec spec'

2011-02-25 Thread Tom Milewski
Spec Rails 2.4.1 Factory Girl 2.0.0.beta1 Thanks again! On Feb 24, 2:26 pm, Craig Demyanovich wrote: > On Thu, Feb 24, 2011 at 2:07 PM, Tom Milewski wrote: > > Thanks for the replies. > > > Here's the error I'm seeing when running all specs (.build > > and .creat