Sha256: 80ed321f9ff8bab7497477ad007ff07ce7167d62d4a809d709c88570610c3f76

Contents?: true

Size: 883 Bytes

Versions: 2

Compression:

Stored size: 883 Bytes

Contents

Feature: Manage <%= plural_name %>
  In order to keep track of <%= plural_name %>
  A <%= singular_name %> mechanic
  Should be able to manage several <%= plural_name %>
  
  Scenario: Register new <%= singular_name %>
    Given I am on the new <%= singular_name %> page
<% keyword = 'When' -%>
<% args.each do |arg| -%>
    <%= keyword %> I fill in "My <%= singular_name %> <%= arg %>" for "<%= arg.humanize %>"
<% keyword = 'And' -%>
<% end -%>
    And I press "Create"
<% keyword = 'Then' -%>
<% args.each do |arg| -%>
    <%= keyword %> I should see "My <%= singular_name %> <%= arg %>"
<% keyword = 'And' -%>
<% end -%>

  Scenario: Delete <%= singular_name %>
    Given there are 4 <%= plural_name %>
    When I delete the first <%= singular_name %>
    Then there should be 3 <%= plural_name %> left
    
    | initial | after |
    | 100     | 99    |
    | 1       | 0     |

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aslakhellesoy-cucumber-0.1.3 generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.1.4 generators/feature/templates/feature.erb