Registry / testing / rspec-steps

rspec-steps

JSON →
library2.1.1rbrubygemsunverified

Allows building sequential, stateful integration tests within RSpec where before/after hooks run only at the start and end of the sequence.

gem install rspec-steps
INSTALL
IMPORT
SIG · RSPEC-STEPS
R
rspec-steps
testingrubyv2.1.1
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::Steps
✓ require 'rspec-steps'

Define sequential test steps that share state.

require 'rspec-steps' RSpec.describe 'User story' do steps 'First step' do it { expect(1).to eq(1) } end steps 'Second step' do it { expect(2).to eq(2) } end end
Debug
Known issues
gotchaState is shared between steps, which can lead to test pollution if not carefully managed.
fix
Ensure each step does not rely on mutable state from previous steps unless intended.
affects: >= 2.0.0
Upgrade
Version history
2.1.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

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