2016-10-12 12:48:53 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe Projects::GraphsController do
|
2017-01-25 16:44:33 -05:00
|
|
|
let(:project) { create(:project, :repository) }
|
2016-10-12 12:48:53 -04:00
|
|
|
let(:user) { create(:user) }
|
|
|
|
|
|
|
|
before do
|
|
|
|
sign_in(user)
|
|
|
|
project.team << [user, :master]
|
|
|
|
end
|
|
|
|
|
2017-03-02 12:57:01 -05:00
|
|
|
describe 'GET languages' do
|
|
|
|
it "redirects_to action charts" do
|
|
|
|
get(:commits, namespace_id: project.namespace.path, project_id: project.path, id: 'master')
|
|
|
|
|
|
|
|
expect(response).to redirect_to action: :charts
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
describe 'GET commits' do
|
|
|
|
it "redirects_to action charts" do
|
|
|
|
get(:commits, namespace_id: project.namespace.path, project_id: project.path, id: 'master')
|
|
|
|
|
|
|
|
expect(response).to redirect_to action: :charts
|
|
|
|
end
|
|
|
|
end
|
2016-10-12 12:48:53 -04:00
|
|
|
end
|