Commit 1799cf3b49dbe243e21f13d51496be7d60d1a73f
1 parent
275db3c5
Exists in
master
and in
4 other branches
Add CommitsController spec to make sure atom feeds work
Showing
1 changed file
with
22 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,22 @@ |
1 | +require 'spec_helper' | |
2 | + | |
3 | +describe CommitsController do | |
4 | + let(:project) { create(:project) } | |
5 | + let(:user) { create(:user) } | |
6 | + | |
7 | + before do | |
8 | + sign_in(user) | |
9 | + | |
10 | + project.add_access(user, :read, :admin) | |
11 | + end | |
12 | + | |
13 | + describe "GET show" do | |
14 | + context "as atom feed" do | |
15 | + it "should render as atom" do | |
16 | + get :show, project_id: project.code, id: "master.atom" | |
17 | + response.should be_success | |
18 | + response.content_type.should == 'application/atom+xml' | |
19 | + end | |
20 | + end | |
21 | + end | |
22 | +end | ... | ... |