Registry / testing / rspec-core

rspec-core

JSON →
library3.13.6rbrubygemsunverified

RSpec Core provides the RSpec runner and example groups for behavior-driven development in Ruby.

gem install rspec-core
INSTALL
IMPORT
SIG · RSPEC-CORE
R
rspec-core
testingrubyv3.13.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'

Define and run a basic RSpec test

require 'rspec' RSpec.describe 'A simple test' do it 'passes' do expect(1 + 1).to eq(2) end end RSpec::Core::Runner.run([])
Debug
Known issues
breakingRSpec 3.x changed the default expectation syntax; 'should' is deprecated in favor of 'expect'.
fix
Use expect(...).to instead of ...should.
affects: >= 3.0.0
Upgrade
Version history
3.13.6latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
rspec-core — gem install rspec-core · libregistry