Re: [rspec-users] mongo_mapper validations, rpsec

2011-10-05 Thread Pieter Michels
Hi I sort of fixed the issue. Let me first describe it some more. My tests kept generating the following failed test: 1) Portfolio require a valid e-mail address Failure/Error: port = Factory :portfolio, :email => email MongoMapper::DocumentNotValid: Validation failed: Email i

Re: [rspec-users] mongo_mapper validations, rpsec

2011-10-05 Thread David Chelimsky
On Sep 3, 2011, at 4:17 PM, Chris Habgood wrote: > I have a basic user class and doing rspec validations. When I do a factory > create to produce validations it blows up before I can get to the second line > to check for errors. Ideas how to get this to perform like AR Validations? > > MongoM

Re: [rspec-users] mongo_mapper validations, rpsec

2011-10-05 Thread Pieter Michels
I seem to have the same problem. DId you guys find out what the problem was? Thanks On Sep 5, 3:11 am, Chris Habgood wrote: > MongoMapper::DocumentNotValid: >        Validation failed: Password can't be blank, Email can't be blank, > Password digest can't be blank > > On Sun, Sep 4, 2011 at 19:0

Re: [rspec-users] mongo_mapper validations, rpsec

2011-09-04 Thread Chris Habgood
MongoMapper::DocumentNotValid: Validation failed: Password can't be blank, Email can't be blank, Password digest can't be blank On Sun, Sep 4, 2011 at 19:06, Nick wrote: > What does the backtrace say? > ___ > rspec-users mailing list > rspec-us

Re: [rspec-users] mongo_mapper validations, rpsec

2011-09-04 Thread Nick
What does the backtrace say?___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] mongo_mapper validations, rpsec

2011-09-04 Thread Chris Habgood
Sorry, it fails validation which it should but it errors out in the cli as opposed to going along and checking, it does not get past the inital factory new line: Failure/Error: user = Factory(:user, :email=> '', :password => '') MongoMapper::DocumentNotValid: Validation failed: Passwo

Re: [rspec-users] mongo_mapper validations, rpsec

2011-09-04 Thread Nick
Hey Chris. Could you be more specific than "it blows up"? If there's a stack trace, that'd be helpful.___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] mongo_mapper validations, rpsec

2011-09-04 Thread Chris Habgood
I have a basic user class and doing rspec validations. When I do a factory create to produce validations it blows up before I can get to the second line to check for errors. Ideas how to get this to perform like AR Validations? MongoMapper::DocumentNotValid: Validation failed: Password

Re: [rspec-users] mongo_mapper

2011-08-28 Thread David Chelimsky
On Aug 28, 2011, at 1:40 PM, Chris Habgood wrote: > I have a rails 3.1 app. I am using mongo_mapper, but when I run rake rspec > it says: > > Mongoid is not installed (gem install mongoid) > > Any idea where this could be coming from. > > I am using: > > gem 'machinist', '>= 2.0.0.beta2' >

[rspec-users] mongo_mapper

2011-08-28 Thread Chris Habgood
I have a rails 3.1 app. I am using mongo_mapper, but when I run rake rspec it says: Mongoid is not installed (gem install mongoid) Any idea where this could be coming from. I am using: gem 'machinist', '>= 2.0.0.beta2' gem 'machinist2_mongomapper', :require => "machinist_mongomapper" gem