BigW Consortium Gitlab

commits_controller_spec.rb 500 Bytes
Newer Older
1 2
require 'spec_helper'

3
describe Projects::CommitsController do
4
  let(:project) { create(:project) }
5
  let(:user) { create(:user) }
6 7 8

  before do
    sign_in(user)
9
    project.team << [user, :master]
10 11 12 13 14
  end

  describe "GET show" do
    context "as atom feed" do
      it "should render as atom" do
15
        get :show, project_id: project.to_param, id: "master", format: "atom"
16 17 18 19 20 21
        response.should be_success
        response.content_type.should == 'application/atom+xml'
      end
    end
  end
end