remarkable_mongoid

RSpec Matchers for Mongoid


License
MIT
Install
gem install remarkable_mongoid -v 0.2.0

Documentation

remarkable_mongoid

NOTE: This gem is based upon the 2.0 Release Candidate of Mongoid and the 4.0 alpha of Remarkable

RSpec Matchers for Mongoid

Matchers

Fields

  • have_field

Associations

  • reference_one
  • reference_many
  • be_referenced_in
  • reference_many_and_be_referenced_in
  • embed_one
  • embed_many
  • be_embedded_in

Validations

Installation

gem install remarkable_mongoid

Usage

require 'remarkable/mongoid'

describe Book do
  it { should reference_one :author }
end

Copyright

Copyright (c) 2010 - 2011 Brian Cardarella. See LICENSE for details.