yeastymobs / remarkable_mongomapper

MongoMapper Remarkable Matchers

This URL has Read+Write access

name age message
file .gitignore Tue Jul 28 01:50:13 -0700 2009 Add have_key matcher. [nmerouze]
file LICENSE Tue Jul 28 01:50:13 -0700 2009 Add have_key matcher. [nmerouze]
file README.md Fri Jul 31 06:26:58 -0700 2009 Add validate_length_of matcher. [nmerouze]
file Rakefile Wed Jul 29 07:03:22 -0700 2009 Add spec task. [nmerouze]
file VERSION Fri Jul 31 02:58:34 -0700 2009 Version bump to 0.1.1 [nmerouze]
directory lib/ Fri Jul 31 06:26:58 -0700 2009 Add validate_length_of matcher. [nmerouze]
directory locales/ Fri Jul 31 06:26:58 -0700 2009 Add validate_length_of matcher. [nmerouze]
file remarkable_mongomapper.gemspec Fri Jul 31 02:59:06 -0700 2009 Regenerated gemspec for version 0.1.1 [nmerouze]
directory spec/ Fri Jul 31 06:26:58 -0700 2009 Add validate_length_of matcher. [nmerouze]
README.md

Remarkable MongoMapper

Remarkable matchers for MongoMapper.

Matchers

it { should have_key(:name, String) }
it { should have_keys(:name, :phone_number, String) }
it { should validate_presence_of(:name, :phone_number, :message => "not there!") }
it { should belong_to(:user, :class_name => 'Person') }
it { should have_many(:users, :class_name => 'Person', :polymorphic => true) }

TODO

  • Finish validate_length_of

Contributions

It is far from complete! It'd be very helpful to have some help.

Contributors

  • Nicolas Mérouze
  • Mathieu Fosse
  • Vincent Hellot