Sha256: d6f2d9eda48da99eeeb0b1548fed42384fed0da66657dd9d0ed68bbde994e23f

Contents?: true

Size: 1014 Bytes

Versions: 127

Compression:

Stored size: 1014 Bytes

Contents

Feature: Manage <%= plural_name %>
  In order to [goal]
  [stakeholder]
  wants [behaviour]
  
  Scenario: Register new <%= singular_name %>
    Given I am on the new <%= singular_name %> page
<% keyword = 'When' -%>
<% named_args.each do |arg| -%>
    <%= keyword %> I fill in "<%= arg.name.humanize %>" with "<%= arg.value(1) %>"
<% keyword = 'And' -%>
<% end -%>
    And I press "Create"
<% keyword = 'Then' -%>
<% named_args.each do |arg| -%>
    <%= keyword %> I should see "<%= arg.value(1) %>"
<% keyword = 'And' -%>
<% end -%>

  Scenario: Delete <%= singular_name %>
    Given the following <%= plural_name %>:
      |<%= named_args.map(&:name).join('|') %>|
<% (1..4).each do |n| -%>
      |<%= named_args.map{|arg| arg.value(n)}.join('|') %>|
<% end -%>
    When I delete the 3rd <%= singular_name %>
    Then I should see the following <%= plural_name %>:
      |<%= named_args.map(&:name).join('|') %>|
<% [1,2,4].each do |n| -%>
      |<%= named_args.map{|arg| arg.value(n)}.join('|') %>|
<% end -%>

Version data entries

127 entries across 127 versions & 9 rubygems

Version Path
aslakhellesoy-cucumber-0.1.100.1 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.1.100.2 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.1.100.3 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.1.100.4 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.1.100.5 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.1.13.2 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.1.13.3 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.1.13 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.1.14.1 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.1.14.2 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.1.15 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.1.16.1 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.1.16.2 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.1.16.3 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.1.16.4 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.1.16.5 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.1.16 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.1.99.1 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.1.99.10 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.1.99.11 rails_generators/feature/templates/feature.erb