Registry / testing / rspec-command

rspec-command

JSON →
library1.0.3rbrubygemsunverified

An RSpec helper module for testing command-line tools.

gem install rspec-command
INSTALL
IMPORT
SIG · RSPEC-COMMAND
R
rspec-command
testingrubyv1.0.3
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::Command
require 'rspec-command'

Test a CLI command with RSpec

require 'rspec-command' RSpec.describe 'my_cli' do include RSpec::Command it 'prints help' do expect { command('my_cli --help') }.to output(/Usage/).to_stdout end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.3latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
rspec-command — gem install rspec-command · libregistry