create atom feed for commits
This commit is contained in:
parent
3f70316c5f
commit
2b04c2a67f
4 changed files with 37 additions and 2 deletions
|
@ -25,6 +25,15 @@ describe "Commits" do
|
|||
page.should have_content(commit.author)
|
||||
page.should have_content(commit.message)
|
||||
end
|
||||
|
||||
it "should render atom feed" do
|
||||
visit project_commits_path(project, :atom)
|
||||
|
||||
page.response_headers['Content-Type'].should have_content("application/atom+xml")
|
||||
page.body.should have_selector("title", :text => "Recent commits to #{project.name}")
|
||||
page.body.should have_selector("author email", :text => commit.author_email)
|
||||
page.body.should have_selector("entry summary", :text => commit.message)
|
||||
end
|
||||
end
|
||||
|
||||
describe "GET /commits/:id" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue