gitlab-org--gitlab-foss/spec/controllers/projects/graphs_controller_spec.rb
2017-08-01 10:48:46 +02:00

27 lines
695 B
Ruby

require 'spec_helper'
describe Projects::GraphsController do
let(:project) { create(:project, :repository) }
let(:user) { create(:user) }
before do
sign_in(user)
project.team << [user, :master]
end
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
end