2012-09-26 03:40:04 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2013-06-23 17:25:06 +00:00
|
|
|
describe Projects::CommitsController do
|
2014-01-22 19:03:52 +00:00
|
|
|
let(:project) { create(:project) }
|
2013-04-25 14:15:33 +00:00
|
|
|
let(:user) { create(:user) }
|
2012-09-26 03:40:04 +00:00
|
|
|
|
|
|
|
before do
|
|
|
|
sign_in(user)
|
2014-05-26 12:53:34 +00:00
|
|
|
project.team << [user, :master]
|
2012-09-26 03:40:04 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
describe "GET show" do
|
|
|
|
context "as atom feed" do
|
|
|
|
it "should render as atom" do
|
2013-09-05 11:46:34 +00:00
|
|
|
get :show, project_id: project.to_param, id: "master", format: "atom"
|
2012-09-26 03:40:04 +00:00
|
|
|
response.should be_success
|
|
|
|
response.content_type.should == 'application/atom+xml'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|