Sha256: 3e79d925b6598065c5318290a78956b1e10ba048619e2b61d1c6f222fdfa6f50

Contents?: true

Size: 588 Bytes

Versions: 38

Compression:

Stored size: 588 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

38 entries across 38 versions & 8 rubygems

Version Path
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/command_line/ruby.feature
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/command_line/ruby.feature
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/command_line/ruby.feature
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/features/command_line/ruby.feature
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/features/command_line/ruby.feature
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/features/command_line/ruby.feature
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/features/command_line/ruby.feature
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/features/command_line/ruby.feature
vagrant-cloudstack-1.1.0 vendor/bundle/gems/rspec-core-2.14.8/features/command_line/ruby.feature
rspec-core-2.99.2 features/command_line/ruby.feature
dxruby_rp5-0.0.4 spec/vendor/rspec-core-2.14.7/features/command_line/ruby.feature
rspec-core-2.99.1 features/command_line/ruby.feature
rspec-core-2.99.0 features/command_line/ruby.feature
rspec-core-2.99.0.rc1 features/command_line/ruby.feature
rspec-core-2.14.8 features/command_line/ruby.feature
rspec-core-2.99.0.beta2 features/command_line/ruby.feature
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/rspec-core-2.14.7/features/command_line/ruby.feature
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/ruby.feature
dxruby_rp5-0.0.3 spec/vendor/rspec-core-2.14.7/features/command_line/ruby.feature
tuktuk-rails-0.0.10 vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/ruby.feature