2012-09-26 05:40:04 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe CommitsController do
|
|
|
|
let(:project) { create(:project) }
|
|
|
|
let(:user) { create(:user) }
|
|
|
|
|
|
|
|
before do
|
|
|
|
sign_in(user)
|
|
|
|
|
2013-01-04 17:50:31 +01:00
|
|
|
project.team << [user, :master]
|
2012-09-26 05:40:04 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
describe "GET show" do
|
|
|
|
context "as atom feed" do
|
|
|
|
it "should render as atom" do
|
2013-03-06 04:59:28 +01:00
|
|
|
get :show, project_id: project.path, id: "master", format: "atom"
|
2012-09-26 05:40:04 +02:00
|
|
|
response.should be_success
|
|
|
|
response.content_type.should == 'application/atom+xml'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|