Skip to content

Instantly share code, notes, and snippets.

$ cucumber --profile wip
Using the wip profile...
Feature: Manage locations
In order to manage locations
As a user
I want to create and edit my locations.
@wip
Scenario: Create a new location # features/manage_locations.feature:19
Given I am on new location page # features/step_definitions/location_steps.rb:22
<p><%= @location.name %></p>
$ cucumber --profile wip
Using the wip profile...
Feature: Manage locations
In order to manage locations
As a user
I want to create and edit my locations.
@wip
Scenario: Create a new location # features/manage_locations.feature:19
Given I am on new location page # features/step_definitions/location_steps.rb:22
@wip
Scenario: Create a new location
Given I am on the es site
And I am on new location page
And I fill in "Nombre" with "Shiny location"
When I press "crear"
Then I should see "Shiny location"
$ cucumber --profile wip
Using the wip profile...
Feature: Manage locations
In order to manage locations
As a user
I want to create and edit my locations.
@wip
Scenario: Create a new location # features/manage_locations.feature:19
Given I am on new location page # features/step_definitions/location_steps.rb:22
<%= form_for(@location) do |f| %>
<p>
<%= f.label :name, t('.name_html') %>
<%= f.text_field :name %>
</p>
<p>
<%= f.submit %>
</p>
<% end %>
en:
locations:
index:
title_html: "Locations"
new:
name_html: "Name"
es:
locations:
index:
title_html: "Locaciones"
new:
name_html: "Nombre"
$ cucumber --profile wip
Using the wip profile...
Feature: Manage locations
In order to manage locations
As a user
I want to create and edit my locations.
@wip
Scenario: Create a new location # features/manage_locations.feature:19
Given I am on new location page # features/step_definitions/location_steps.rb:22
<p>
<%= f.button t('.button_html') %>
</p>