Sha256: f5123b81b45a023adac73cc306af2d366703e05b382359ae9fa3c95bec285a21
Contents?: true
Size: 613 Bytes
Versions: 5
Compression:
Stored size: 613 Bytes
Contents
# Remarkable MongoMapper Remarkable matchers for [MongoMapper](http://github.com/jnunemaker/mongomapper). ## Matchers <pre><code>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) }</code></pre> ## TODO * Finish validate_length_of ## Contributions It is far from complete! It'd be very helpful to have some help. ## Contributors * Nicolas Mérouze
Version data entries
5 entries across 5 versions & 3 rubygems
Version | Path |
---|---|
remarkable_mongo-0.1.4 | README.md |
remarkable_mongo-0.1.3 | README.md |
remarkable_mongo_ign-0.1.2 | README.md |
ippy04-remarkable_mongo-0.1.3 | README.md |
remarkable_mongo-0.1.2 | README.md |