Add and fix some tests for routing.

It is linked to #2598.
This commit is contained in:
Sato Hiroyuki 2013-03-06 12:59:28 +09:00
parent 6beae84ea3
commit 6224ac0647
2 changed files with 16 additions and 6 deletions

View file

@ -13,7 +13,7 @@ describe CommitsController do
describe "GET show" do
context "as atom feed" do
it "should render as atom" do
get :show, project_id: project.path, id: "master.atom"
get :show, project_id: project.path, id: "master", format: "atom"
response.should be_success
response.content_type.should == 'application/atom+xml'
end