Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
250 additions
and
10 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
When /^I access the meal RSS feed$/ do | ||
visit('/main.rss') | ||
response.should be_ok | ||
end | ||
|
||
When /^I access the recipe RSS feed$/ do | ||
visit('/recipes.rss') | ||
response.should be_ok | ||
end | ||
|
||
Then /^I should see the 10 most recent meals$/ do | ||
response. | ||
should have_selector("channel > item > title", | ||
:count => 10) | ||
response. | ||
should have_selector("channel > item > title", | ||
:content => "Meal 0") | ||
end | ||
|
||
Then /^I should see the summary of each meal$/ do | ||
response. | ||
should have_selector("channel > item > description", | ||
:content => "meal summary") | ||
end | ||
|
||
Then /^I should see a meal link$/ do | ||
response. | ||
should contain('http://www.eeecooks.com/meals/2009/06/11') | ||
# should have_selector('link', | ||
# :content => 'http://www.eeecooks.com/meals/2009/06/11') | ||
end | ||
|
||
Then /^I should see a meal published date$/ do | ||
response. | ||
should contain("Thu, 11 Jun 2009") | ||
end | ||
|
||
Then /^I should see the 10 most recent recipes$/ do | ||
response. | ||
should have_selector("channel > item > title", | ||
:count => 10) | ||
response. | ||
should have_selector("channel > item > title", | ||
:content => "delicious, easy to prepare") | ||
end | ||
|
||
Then /^I should see the summary of each recipe$/ do | ||
response. | ||
should have_selector("channel > item > description", | ||
:content => "recipe summary") | ||
end |
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
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