Registry / testing / rspec-spies

rspec-spies

JSON →
library2.1.4rbrubygemsunverified

Provides test spies for RSpec, allowing you to set expectations on messages that have already been received.

gem install rspec-spies
INSTALL
IMPORT
SIG · RSPEC-SPIES
R
rspec-spies
testingrubyv2.1.4
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::Spies
require 'rspec-spies'

Basic usage of a test spy with RSpec

require 'rspec-spies' RSpec.describe 'spy' do it 'records messages' do obj = double('object') obj.some_method expect(obj).to have_received(:some_method) end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.1.4latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
rspec-spies — gem install rspec-spies · libregistry