File: bug_371.feature

package info (click to toggle)
cucumber 1.3.17-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,296 kB
  • ctags: 1,812
  • sloc: ruby: 13,576; python: 28; sh: 10; makefile: 10; tcl: 3
file content (32 lines) | stat: -rw-r--r-- 737 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Feature: https://rspec.lighthouseapp.com/projects/16211/tickets/371
  Scenario: Before runs once
    Given a standard Cucumber project directory structure
    And a file named "features/f.feature" with:
      """
      Feature: F
        Scenario: S
          Given G
      """
    And a file named "features/step_definitions/steps.rb" with:
      """
      Before do
        puts "B"
      end
      Given /G/ do
        puts "G"
      end
      """
    When I run cucumber -q --format pretty --format progress --out progress.txt features/f.feature
    Then it should pass with
      """
      Feature: F

        Scenario: S
          Given G
            B
            G

      1 scenario (1 passed)
      1 step (1 passed)

      """