Registry / testing / shoulda-matchers

shoulda-matchers

JSON →
library8.0.1rbrubygemsunverified

RSpec- and Minitest-compatible one-liners to test common Rails functionality.

gem install shoulda-matchers
INSTALL
IMPORT
SIG · SHOULDA-MATCHERS
S
shoulda-matchers
testingrubyv8.0.1
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.

Shoulda::Matchers
require 'shoulda-matchers'

Test model validations with one-liner matchers

require 'shoulda-matchers' RSpec.describe User, type: :model do it { should validate_presence_of(:name) } end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
8.0.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
51 hits · last 30 days
node
50
Resources
shoulda-matchers — gem install shoulda-matchers · libregistry