summaryrefslogtreecommitdiff
path: root/spec/controllers/commits_controller_spec.rb
blob: 0c19d755eb188cbbc3029c1d17a8162fdd98fefe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'spec_helper'

describe Projects::CommitsController do
  let(:project) { create(:project) }
  let(:user) { create(:user) }

  before do
    sign_in(user)
    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.to_param, id: "master", format: "atom"
        response.should be_success
        response.content_type.should == 'application/atom+xml'
      end
    end
  end
end