debian-mirror-gitlab/spec/controllers/projects/commits_controller_spec.rb

26 lines
600 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
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
2015-09-11 14:41:01 +05:30
get(:show,
namespace_id: project.namespace.to_param,
project_id: project.to_param,
id: "master",
format: "atom")
2015-04-26 12:48:37 +05:30
expect(response).to be_success
expect(response.content_type).to eq('application/atom+xml')
2014-09-02 18:07:02 +05:30
end
end
end
end