gitlab-org--gitlab-foss/spec/controllers/commits_controller_spec.rb

23 lines
500 B
Ruby
Raw Normal View History

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