Sha256: 48af323ee52145432d1014be6237ad4ff4394b6738b30c60ed73d326003fdc81

Contents?: true

Size: 650 Bytes

Versions: 2

Compression:

Stored size: 650 Bytes

Contents

Feature: run with warnings enabled

  You can use the `--warnings` option to run specs with warnings enabled

  Scenario:
    Given a file named "example_spec.rb" with:
      """ruby
      describe do
        it 'generates warning' do
          @undefined
        end
      end
      """
    When I run `rspec --warnings example_spec.rb`
    Then the output should contain "warning"

  Scenario:
    Given a file named "example_spec.rb" with:
      """ruby
      describe do
        it 'generates warning' do
          @undefined
        end
      end
      """
    When I run `rspec example_spec.rb`
    Then the output should not contain "warning"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-core-2.14.0 features/command_line/warnings_option.feature
rspec-core-2.14.0.rc1 features/command_line/warnings_option.feature