Add CommitsController spec to make sure atom feeds work
This commit is contained in:
parent
275db3c522
commit
1799cf3b49
22
spec/controllers/commits_controller_spec.rb
Normal file
22
spec/controllers/commits_controller_spec.rb
Normal file
|
@ -0,0 +1,22 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe CommitsController do
|
||||
let(:project) { create(:project) }
|
||||
let(:user) { create(:user) }
|
||||
|
||||
before do
|
||||
sign_in(user)
|
||||
|
||||
project.add_access(user, :read, :admin)
|
||||
end
|
||||
|
||||
describe "GET show" do
|
||||
context "as atom feed" do
|
||||
it "should render as atom" do
|
||||
get :show, project_id: project.code, id: "master.atom"
|
||||
response.should be_success
|
||||
response.content_type.should == 'application/atom+xml'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue