Registry / testing / rspec-expect-error

rspec-expect-error

JSON →
library0.2.0rbrubygemsunverified

Provides a wrapper around expect {}.to raise_error.

gem install rspec-expect_error
INSTALL
IMPORT
SIG · RSPEC-EXPECT-ERROR
R
rspec-expect-error
testingrubyv0.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::ExpectError
✓ require 'rspec/expect_error'

Use expect_error in RSpec tests

require 'rspec/expect_error' RSpec.describe 'example' do it 'raises error' do expect { raise 'boom' }.to raise_error('boom') end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Resources
rspec-expect-error — gem install rspec-expect-error · libregistry