Skip to content

Instantly share code, notes, and snippets.

@underwhelmed
Created January 19, 2011 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save underwhelmed/785429 to your computer and use it in GitHub Desktop.
Save underwhelmed/785429 to your computer and use it in GitHub Desktop.
dates in a cucumber table need to be in YYYY MM DD format
(::) failed steps (::)
Validation failed: Start at can't be blank, End at can't be blank (ActiveRecord::RecordInvalid)
./features/step_definitions/view_calendar_steps.rb:7:in `block (2 levels) in <top (required)>'
./features/step_definitions/view_calendar_steps.rb:6:in `each'
./features/step_definitions/view_calendar_steps.rb:6:in `/^I have an Event with the following attributes:$/'
features/view_calendar_detail.feature:8:in `Given I have an Event with the following attributes:'
Feature: Viewing the Calendar
So they can see upcoming events
users
should be able to view the details of events
Scenario: Unauthenticated user views correct events
Given I have an Event with the following attributes:
|name |description |start_at |end_at |members_only |all_day |event_category_id |
|Testing12 |Testing this out |2011/1/20 17:00 |2011/1/20 19:00 |true |false |1 |
|Testing123 |Testing this out |2011/1/23 17:00 |2011/1/23 19:00 |false |false |1 |
And I am not authenticated
And I am on the Calendar page
Then I should not see "Testing12"
And I should see "Testing123"
Given /^I have an Event with the following attributes:$/ do |table|
table.hashes.each do |attributes|
Event.create!(attributes)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment