Created
January 19, 2011 00:10
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(::) 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:' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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