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

https://github.com/delowong/logstash · Gherkin Specification · 18 lines · 15 code · 3 blank · 0 comment · 0 complexity · 2283935f5a2cd2caa857baf53f224d86 MD5 · raw file

  1. Feature: --init option
  2. Use the --init option on the command line to generate conventional
  3. files for an rspec project.
  4. Scenario: generate .rspec
  5. When I run `rspec --init`
  6. Then the following files should exist:
  7. | .rspec |
  8. And the output should contain "create .rspec"
  9. Scenario: .rspec file already exists
  10. Given a file named ".rspec" with:
  11. """
  12. --color
  13. """
  14. When I run `rspec --init`
  15. Then the output should contain "exist .rspec"