PageRenderTime 15ms CodeModel.GetById 10ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/vendor/bundle/jruby/2.1/gems/rspec-core-2.14.8/features/command_line/warnings_option.feature

https://github.com/delowong/logstash
Gherkin Specification | 29 lines | 26 code | 3 blank | 0 comment | 0 complexity | 7b9bf6bee659aeb7875473c02078f5ec MD5 | raw file
 1Feature: run with warnings enabled
 2
 3  You can use the `--warnings` option to run specs with warnings enabled
 4
 5  @unsupported-on-rbx
 6  Scenario:
 7    Given a file named "example_spec.rb" with:
 8      """ruby
 9      describe do
10        it 'generates warning' do
11          @undefined
12        end
13      end
14      """
15    When I run `rspec --warnings example_spec.rb`
16    Then the output should contain "warning"
17
18  @unsupported-on-rbx
19  Scenario:
20    Given a file named "example_spec.rb" with:
21      """ruby
22      describe do
23        it 'generates warning' do
24          @undefined
25        end
26      end
27      """
28    When I run `rspec example_spec.rb`
29    Then the output should not contain "warning"