Sha256: 5a329da3f1ef5265d3bc7f0af4cc8e6302e6dfae12738766379d652fae59157b

Contents?: true

Size: 1.01 KB

Versions: 66

Compression:

Stored size: 1.01 KB

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{|arg| arg.name.humanize}.join('|') %>|
<% [1,2,4].each do |n| -%>
      |<%= named_args.map{|arg| arg.value(n)}.join('|') %>|
<% end -%>

Version data entries

66 entries across 66 versions & 10 rubygems

Version Path
aslakhellesoy-cucumber-0.3.100 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.3.101.2 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.3.101 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.3.102.1 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.3.102.2 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.3.102 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.3.103 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.3.104 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.3.11.200907091518 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.3.90 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.3.92 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.3.93.1 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.3.93 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.3.94.1 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.3.94 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.3.95 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.3.96 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.3.97 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.3.98 rails_generators/feature/templates/feature.erb
aslakhellesoy-cucumber-0.3.99 rails_generators/feature/templates/feature.erb