gitlab-org--gitlab-foss/spec/controllers/commits_controller_spec.rb
Vinnie Okada 76aad9b76e Upgrade to Rails 4.1.9
Make the following changes to deal with new behavior in Rails 4.1.2:

* Use nested resources to avoid slashes in arguments to path helpers.
2015-02-14 11:09:23 -07:00

22 lines
564 B
Ruby

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, namespace_id: project.namespace.to_param,
project_id: project.to_param, id: "master", format: "atom")
expect(response).to be_success
expect(response.content_type).to eq('application/atom+xml')
end
end
end
end