Registry / testing / assert-difference

assert-difference

JSON →
library1.0.0rbrubygemsunverified

Provides a compact and readable syntax for asserting changes in values, similar to Rails' assert_difference, using hashes and supporting ranges.

gem install assert_difference
INSTALL
IMPORT
SIG · ASSERT-DIFFERENCE
A
assert-difference
testingrubyv1.0.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.

AssertDifference
require 'assert_difference'

Asserts that a block changes a value by a specified amount.

require 'assert_difference' assert_difference 'User.count', +1 do User.create! end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
16
OpenAI (training)
1
Resources
assert-difference — gem install assert-difference · libregistry