On Tue, Feb 17, 2009 at 8:42 PM, Yi Wen <hayafi...@gmail.com> wrote: > ah! sorry, my bad. Thanks!
No worries - I always just read the code first too :) > > On Tue, Feb 17, 2009 at 6:56 PM, David Chelimsky <dchelim...@gmail.com> > wrote: >> >> On Tue, Feb 17, 2009 at 6:25 PM, Yi Wen <hayafi...@gmail.com> wrote: >> > Sorry for the spam, I relized there was a typo. It should be >> > it {should validate_presence_of(:login)} >> > It still didn't work >> >> Scrolling up a bit ... >> >> "There are a few matcher libraries out there like >> rspec-on-rails-matchers that provide matchers like this >> validate_presence_of(:email)" >> >> validate_presence_of() is not part of rspec-rails. You can find >> libraries that offer comparable matchers at: >> >> http://github.com/thoughtbot/shoulda/tree/master >> http://github.com/joshknowles/rspec-on-rails-matchers/tree/master >> http://github.com/technoweenie/rspec_on_rails_on_crack/tree/master >> http://github.com/carlosbrando/remarkable/tree/master >> >> HTH, >> David >> >> >> > >> > On Tue, Feb 17, 2009 at 6:04 PM, Yi Wen <hayafi...@gmail.com> wrote: >> >> >> >> Hello, >> >> >> >> according to this post: >> >> http://blog.davidchelimsky.net/2009/1/13/rspec-1-1-12-is-released >> >> >> >> I should be able to write: >> >> >> >> describe User do >> >> it {should valdate_presence_of(:login)} >> >> end >> >> >> >> with rspec 1.1.12 >> >> >> >> But I got: >> >> >> >> NO NAME >> >> undefined method `valdate_presence_of' for >> >> #<Spec::Rails::Example::ModelExampleGroup::Subclass_1:0x2513298> >> >> >> >> What did I do it wrong? Thanks for helping. >> >> >> >> Yi >> > >> > >> > _______________________________________________ >> > rspec-users mailing list >> > rspec-users@rubyforge.org >> > http://rubyforge.org/mailman/listinfo/rspec-users >> > >> _______________________________________________ >> rspec-users mailing list >> rspec-users@rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users > > > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users