Registry / testing / rspec-example-steps

rspec-example-steps

JSON →
library3.1.1rbrubygemsunverified

Provides Given/When/Then step methods for structuring RSpec examples.

gem install rspec-example_steps
INSTALL
IMPORT
SIG · RSPEC-EXAMPLE-STEP
R
rspec-example-steps
testingrubyv3.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::ExampleSteps
require 'rspec/example_steps'

Using Given/When/Then steps in an RSpec example

require 'rspec/example_steps' RSpec.describe 'example' do it 'works' do Given(:value) { 1 } When(:result) { value + 1 } Then { expect(result).to eq(2) } end end
Debug
Known issues
breakingRequires RSpec 3.x
fix
Ensure RSpec 3.x is installed as a dependency.
affects: >= 3.0.0
Upgrade
Version history
3.1.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

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