mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-28 22:16:15 +10:00
Remove some deprecations and fir project helper specs
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
@@ -82,7 +82,7 @@ module ProjectsHelper
|
||||
end
|
||||
|
||||
def project_active_milestones
|
||||
@project.milestones.active.order("due_date, title ASC").all
|
||||
@project.milestones.active.order("due_date, title ASC")
|
||||
end
|
||||
|
||||
def project_issues_trackers(current_tracker = nil)
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
%i.icon-edit
|
||||
Edit
|
||||
|
||||
= link_to project_note_path(@project, note), title: "Remove comment", method: :delete, confirm: 'Are you sure you want to remove this comment?', remote: true, class: "danger js-note-delete" do
|
||||
= link_to project_note_path(@project, note), title: "Remove comment", method: :delete, data: { confirm: 'Are you sure you want to remove this comment?' }, remote: true, class: "danger js-note-delete" do
|
||||
%i.icon-trash.cred
|
||||
Remove
|
||||
= image_tag avatar_icon(note.author_email), class: "avatar s32"
|
||||
|
||||
@@ -11,12 +11,12 @@ describe ProjectsHelper do
|
||||
it "returns the correct issues trackers available with current tracker 'gitlab' selected" do
|
||||
project_issues_trackers('gitlab').should ==
|
||||
"<option value=\"redmine\">Redmine</option>\n" \
|
||||
"<option value=\"gitlab\" selected=\"selected\">GitLab</option>"
|
||||
"<option selected=\"selected\" value=\"gitlab\">GitLab</option>"
|
||||
end
|
||||
|
||||
it "returns the correct issues trackers available with current tracker 'redmine' selected" do
|
||||
project_issues_trackers('redmine').should ==
|
||||
"<option value=\"redmine\" selected=\"selected\">Redmine</option>\n" \
|
||||
"<option selected=\"selected\" value=\"redmine\">Redmine</option>\n" \
|
||||
"<option value=\"gitlab\">GitLab</option>"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user