Update badges path
This commit is contained in:
parent
667aba6f3b
commit
6445cec718
4 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue