Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix feature ordering issue and rename

  • Loading branch information...
commit afba150ba8f60abbd0ecae971c2b387814b3520b 1 parent e6330b6
@stevehodgkiss stevehodgkiss authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 features/select_dates.feature
View
10 features/select_dates.feature
@@ -3,7 +3,7 @@ Feature: Select dates
Background: A simple calendar app
Given I have created a new Rails 3 app "rails-3-app" with cucumber-rails support
- Scenario: Select dates
+ Scenario: Select date and time
Given I successfully run `bundle exec rails g scaffold appointment name:string when:datetime`
And I write to "features/create_appointment.feature" with:
"""
@@ -23,7 +23,7 @@ Feature: Select dates
6 steps (6 passed)
"""
- Scenario: Select dates with label pointing to first select
+ Scenario: Select date with label pointing to first select
Given I successfully run `bundle exec rails g scaffold appointment name:string when:date`
And I write to "features/create_appointment.feature" with:
"""
@@ -36,8 +36,7 @@ Feature: Select dates
Then I should see "Norway's constitution"
And I should see "2009-02-20"
"""
- When I run `bundle exec rake db:migrate cucumber`
- Given I write to "app/views/appointments/_form.html.erb" with:
+ And I write to "app/views/appointments/_form.html.erb" with:
"""
<%= form_for(@appointment) do |f| %>
<div class="field">
@@ -46,13 +45,14 @@ Feature: Select dates
</div>
<div class="field">
<%= f.label :when, :for => "appointment_when_1i" %><br />
- <%= f.datetime_select :when %>
+ <%= f.date_select :when %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>
"""
+ When I run `bundle exec rake db:migrate cucumber`
Then it should pass with:
"""
1 scenario (1 passed)
Please sign in to comment.
Something went wrong with that request. Please try again.