Sha256: 013a0597053e7fe7cfdb59d7a3fc7d4ec73392e26e1b2f96f98d5f65a69268e9
Contents?: true
Size: 592 Bytes
Versions: 1
Compression:
Stored size: 592 Bytes
Contents
Feature: run with ruby command You can use the `ruby` command to run specs. You just need to require `rspec/autorun`. Generally speaking, you're better off using the `rspec` command, which requires `rspec/autorun` for you, but some tools only work with the `ruby` command. Scenario: Given a file named "example_spec.rb" with: """ruby require 'rspec/autorun' describe 1 do it "is < 2" do expect(1).to be < 2 end end """ When I run `ruby example_spec.rb` Then the output should contain "1 example, 0 failures"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-core-3.0.0.beta1 | features/command_line/ruby.feature |