Registry / testing / rspec-snapshot

rspec-snapshot

JSON →
library2.2.0rbrubygemsunverified

Adding snapshot testing to RSpec for comparing outputs against stored snapshots.

gem install rspec-snapshot
INSTALL
IMPORT
SIG · RSPEC-SNAPSHOT
R
rspec-snapshot
testingrubyv2.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.

RSpec
require 'rspec/snapshot'

Use snapshot matching in an RSpec test

require 'rspec/snapshot' RSpec.describe 'snapshot test' do it 'matches snapshot' do expect('some output').to match_snapshot('example') end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.2.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
rspec-snapshot — gem install rspec-snapshot · libregistry