Registry / testing / thoughtbot-shoulda

thoughtbot-shoulda

JSON →
library2.11.1rbrubygemsunverified

Making tests easy on the fingers and eyes by providing helpers and matchers for testing Rails applications.

gem install thoughtbot-shoulda
INSTALL
IMPORT
SIG · THOUGHTBOT-SHOULDA
T
thoughtbot-shoulda
testingrubyv2.11.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
require 'shoulda'

Use Shoulda matchers to test model validations.

require 'shoulda' class UserTest < ActiveSupport::TestCase should validate_presence_of(:name) end
Debug
Known issues
breakingThe 'thoughtbot-shoulda' gem is an older version; modern usage prefers 'shoulda-matchers' and 'shoulda-context'.
fix
Use the 'shoulda-matchers' gem for matchers and 'shoulda-context' for context helpers.
affects: < 3.0
Upgrade
Version history
2.11.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
thoughtbot-shoulda — gem install thoughtbot-shoulda · libregistry