b44a2c801a
Updates specs to use new rails5 format. The old format: `get :show, { some: params }, { some: headers }` The new format: `get :show, params: { some: params }, headers: { some: headers }`
27 lines
716 B
Ruby
27 lines
716 B
Ruby
require 'spec_helper'
|
|
|
|
describe Projects::GraphsController do
|
|
let(:project) { create(:project, :repository) }
|
|
let(:user) { create(:user) }
|
|
|
|
before do
|
|
sign_in(user)
|
|
project.add_maintainer(user)
|
|
end
|
|
|
|
describe 'GET languages' do
|
|
it "redirects_to action charts" do
|
|
get(:commits, params: { 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, params: { namespace_id: project.namespace.path, project_id: project.path, id: 'master' })
|
|
|
|
expect(response).to redirect_to action: :charts
|
|
end
|
|
end
|
|
end
|