Update badges path

This commit is contained in:
Annabel Dunstone 2016-07-14 16:19:28 -05:00
parent 667aba6f3b
commit 6445cec718
4 changed files with 3 additions and 4 deletions

View file

@ -25,7 +25,7 @@ class Projects::RefsController < Projects::ApplicationController
when "graphs_commits" when "graphs_commits"
commits_namespace_project_graph_path(@project.namespace, @project, @id) commits_namespace_project_graph_path(@project.namespace, @project, @id)
when "badges" when "badges"
namespace_project_badges_path(@project.namespace, @project, ref: @id) settings_namespace_project_builds_path(@project.namespace, @project, ref: @id)
else else
namespace_project_commits_path(@project.namespace, @project, @id) namespace_project_commits_path(@project.namespace, @project, @id)
end end

View file

@ -76,7 +76,6 @@
%hr %hr
- badges_path = namespace_project_badges_path(@project.namespace, @project)
.row.prepend-top-default .row.prepend-top-default
.col-lg-3.profile-settings-sidebar .col-lg-3.profile-settings-sidebar
%h4.prepend-top-0 %h4.prepend-top-0

View file

@ -5,7 +5,7 @@ class Spinach::Features::ProjectBadgesBuild < Spinach::FeatureSteps
include RepoHelpers include RepoHelpers
step 'I display builds badge for a master branch' do step 'I display builds badge for a master branch' do
visit build_namespace_project_badges_path(@project.namespace, @project, ref: :master, format: :svg) visit settings_namespace_project_builds_path(@project.namespace, @project, ref: :master, format: :svg)
end end
step 'I should see a build success badge' do step 'I should see a build success badge' do

View file

@ -6,7 +6,7 @@ feature 'list of badges' do
project = create(:project) project = create(:project)
project.team << [user, :master] project.team << [user, :master]
login_as(user) login_as(user)
visit namespace_project_badges_path(project.namespace, project) visit settings_namespace_project_builds_path(project.namespace, project)
end end
scenario 'user displays list of badges' do scenario 'user displays list of badges' do