Sha256: 9f6c52f583484af9a36b42d0cad648698316583bafc9941f114311b1fc81ae6c

Contents?: true

Size: 587 Bytes

Versions: 150

Compression:

Stored size: 587 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:
      """
      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

150 entries across 95 versions & 14 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/rspec-core-2.9.0/features/command_line/ruby.feature
classiccms-0.7.5 vendor/bundle/gems/rspec-core-2.10.0/features/command_line/ruby.feature
classiccms-0.7.4 vendor/bundle/gems/rspec-core-2.9.0/features/command_line/ruby.feature
classiccms-0.7.4 vendor/bundle/gems/rspec-core-2.10.0/features/command_line/ruby.feature
classiccms-0.7.3 vendor/bundle/gems/rspec-core-2.10.0/features/command_line/ruby.feature
classiccms-0.7.3 vendor/bundle/gems/rspec-core-2.9.0/features/command_line/ruby.feature
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/rspec-core-2.11.1/features/command_line/ruby.feature
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/rspec-core-2.11.1/features/command_line/ruby.feature
classiccms-0.7.2 vendor/bundle/gems/rspec-core-2.10.0/features/command_line/ruby.feature
classiccms-0.7.2 vendor/bundle/gems/rspec-core-2.9.0/features/command_line/ruby.feature
classiccms-0.7.1 vendor/bundle/gems/rspec-core-2.9.0/features/command_line/ruby.feature
classiccms-0.7.1 vendor/bundle/gems/rspec-core-2.10.0/features/command_line/ruby.feature
classiccms-0.7.0 vendor/bundle/gems/rspec-core-2.10.0/features/command_line/ruby.feature
classiccms-0.7.0 vendor/bundle/gems/rspec-core-2.9.0/features/command_line/ruby.feature
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/rspec-core-2.10.1/features/command_line/ruby.feature
classiccms-0.6.9 vendor/bundle/gems/rspec-core-2.10.0/features/command_line/ruby.feature
classiccms-0.6.9 vendor/bundle/gems/rspec-core-2.9.0/features/command_line/ruby.feature
classiccms-0.6.8 vendor/bundle/gems/rspec-core-2.10.0/features/command_line/ruby.feature
classiccms-0.6.8 vendor/bundle/gems/rspec-core-2.9.0/features/command_line/ruby.feature
classiccms-0.6.7 vendor/bundle/gems/rspec-core-2.10.0/features/command_line/ruby.feature