Registry / testing / mongoid-rspec

mongoid-rspec

JSON →
library4.2.0rbrubygemsunverified

RSpec matchers for Mongoid models, including association and validation matchers.

gem install mongoid-rspec
INSTALL
IMPORT
SIG · MONGOID-RSPEC
M
mongoid-rspec
testingrubyv4.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Mongoid::RSpec
require 'mongoid-rspec'

Test Mongoid model associations and validations

require 'mongoid-rspec' RSpec.describe User, type: :model do it { is_expected.to have_field(:name).of_type(String) } it { is_expected.to validate_presence_of(:email) } end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
4.2.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
mongoid-rspec — gem install mongoid-rspec · libregistry