Skip to content

Instantly share code, notes, and snippets.

@croaky
Created May 26, 2009 23:36
Show Gist options
  • Save croaky/118359 to your computer and use it in GitHub Desktop.
Save croaky/118359 to your computer and use it in GitHub Desktop.
Scenario: Viewing events atom feed
Given a future special event exists with a title of "Barcamp Boston"
Given a future recurring event exists with a title of "Hackfest"
When I go to events.atom
Then I should see an entry for "Barcamp Boston"
And I should see an entry for "Hackfest"
Then /^I should not see an entry for for "(.*)"$/ do |title|
assert_select 'events event title', :text => title, :count => 0
end
Then /^I should see an entry for for "(.*)"$/ do |title|
assert_select 'events event title', title
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment