Registry / testing / rspec-block-is-expected

rspec-block-is-expected

JSON →
library1.0.6rbrubygemsunverified

Provides a `block_is_expected` helper for RSpec to test that a block raises an error.

gem install rspec-block_is_expected
INSTALL
IMPORT
SIG · RSPEC-BLOCK-IS-EXP
R
rspec-block-is-expected
testingrubyv1.0.6
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/block_is_expected'

Test that a block raises a specific error

require 'rspec/block_is_expected' RSpec.describe 'example' do subject { Integer(nil) } it('raises') { block_is_expected.to raise_error(TypeError) } end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.6latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
rspec-block-is-expected — gem install rspec-block-is-expected · libregistry