Commit 6445cec7 authored by Annabel Dunstone's avatar Annabel Dunstone

Update badges path

parent 667aba6f
......@@ -25,7 +25,7 @@ class Projects::RefsController < Projects::ApplicationController
when "graphs_commits"
commits_namespace_project_graph_path(@project.namespace, @project, @id)
when "badges"
namespace_project_badges_path(@project.namespace, @project, ref: @id)
settings_namespace_project_builds_path(@project.namespace, @project, ref: @id)
else
namespace_project_commits_path(@project.namespace, @project, @id)
end
......
......@@ -76,7 +76,6 @@
%hr
- badges_path = namespace_project_badges_path(@project.namespace, @project)
.row.prepend-top-default
.col-lg-3.profile-settings-sidebar
%h4.prepend-top-0
......
......@@ -5,7 +5,7 @@ class Spinach::Features::ProjectBadgesBuild < Spinach::FeatureSteps
include RepoHelpers
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
step 'I should see a build success badge' do
......
......@@ -6,7 +6,7 @@ feature 'list of badges' do
project = create(:project)
project.team << [user, :master]
login_as(user)
visit namespace_project_badges_path(project.namespace, project)
visit settings_namespace_project_builds_path(project.namespace, project)
end
scenario 'user displays list of badges' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment