Sha256: 9e0221d0dba34b347ff6631415668cf9df95b842b1edf18eacc23fa3a5f30d53

Contents?: true

Size: 591 Bytes

Versions: 13

Compression:

Stored size: 591 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
          1.should be < 2
        end
      end
      """
    When I run `ruby example_spec.rb`
    Then the output should contain "1 example, 0 failures"

Version data entries

13 entries across 13 versions & 6 rubygems

Version Path
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rspec-core-2.13.0/features/command_line/ruby.feature
sshp-0.0.2 vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/ruby.feature
sshp-0.0.1 vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/ruby.feature
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/ruby.feature
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/ruby.feature
vagrant-actionio-0.0.9 vendor/bundle/gems/rspec-core-2.13.0/features/command_line/ruby.feature
rspec-core-2.13.1 features/command_line/ruby.feature
rspec-core-2.13.0 features/command_line/ruby.feature
remq-0.0.4 vendor/bundle/gems/rspec-core-2.12.2/features/command_line/ruby.feature
remq-0.0.3 vendor/bundle/gems/rspec-core-2.12.2/features/command_line/ruby.feature
rspec-core-2.12.2 features/command_line/ruby.feature
rspec-core-2.12.1 features/command_line/ruby.feature
rspec-core-2.12.0 features/command_line/ruby.feature