Feature: <%= plural_name.capitalize %> In order to manage <%= plural_name %> I want to be able to view, create, update and destroy <%= plural_name %> Scenario: Show the list of <%= plural_name %> Given I have <%= plural_name %> named bob, henry And I am on the <%= plural_name %> list Then I should see "bob" And I should see "henry" Scenario: Show a specific <%= singular_name.singularize %> Given I have a <%= singular_name.singularize %> named bob And I am on the show page for the <%= singular_name.singularize %> named bob Then I should see "bob" Scenario: Successfully create a new <%= singular_name.singularize %> Given I have no <%= plural_name %> And I am on the new <%= singular_name.singularize %> page <% for attribute in attributes -%> When I fill in "<%= singular_name.singularize %>.field.<%= attribute.name %>.name" with <%= attribute.default_value %> <% end -%> And I press "<%= singular_name.singularize %>.action.create.name" # Then I should see "<%= singular_name.singularize %>.action.create.notice" # You should show flash messages in your layout file ;) Then I should have 1 <%= singular_name.singularize %> record Scenario: Fail to create a new <%= singular_name.singularize %> # Use this scenario for the validations on your model! Scenario: Successfully update a <%= singular_name.singularize %> Given I have a <%= singular_name.singularize %> named bob And I am on the edit page for the <%= singular_name.singularize %> named bob <% for attribute in attributes -%> When I fill in "<%= singular_name.singularize %>.field.<%= attribute.name %>.name" with <%= attribute.default_value %> <% end -%> And I press "<%= singular_name.singularize %>.action.update.name" # Then I should see "<%= singular_name.singularize %>.action.create.notice" # You should show flash messages in your layout file ;) Then I should have 1 <%= singular_name.singularize %> record named <%= attribute.default_value %> And I should have no <%= singular_name.singularize %> records named bob Scenario: Fail to update a <%= singular_name.singularize %> # Use this scenario for the validations on your model! Scenario: Successfully destroy a <%= singular_name.singularize %> Given I have a <%= singular_name.singularize %> named bob And I am on the <%= plural_name %> list When I follow "<%= singular_name.singularize %>.action.destroy.name" # Then I should see "<%= singular_name.singularize %>.action.destroy.notice" # You should show flash messages in your layout file ;) Then I should have no <%= singular_name.singularize %> records