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