replace user.name by user.username in GFM

This commit is contained in:
Cyril 2012-12-07 04:40:42 +01:00
parent 23a8e59938
commit 045b4c8fcd
3 changed files with 34 additions and 37 deletions

View file

@ -19,7 +19,7 @@ describe "Gitlab Flavored Markdown" do
@test_file = "gfm_test_file"
i.add(@test_file, "foo\nbar\n")
# add commit with gfm
i.commit("fix ##{issue.id}\n\nask @#{fred.name} for details", head: @branch_name)
i.commit("fix ##{issue.id}\n\nask @#{fred.username} for details", head: @branch_name)
# add test tag
@tag_name = "gfm-test-tag"
@ -56,7 +56,7 @@ describe "Gitlab Flavored Markdown" do
it "should render description in commits#show" do
visit project_commit_path(project, commit)
page.should have_link("@#{fred.name}")
page.should have_link("@#{fred.username}")
end
it "should render title in refs#tree", js: true do
@ -93,7 +93,7 @@ describe "Gitlab Flavored Markdown" do
assignee: @user,
project: project,
title: "fix ##{@other_issue.id}",
description: "ask @#{fred.name} for details")
description: "ask @#{fred.username} for details")
end
it "should render subject in issues#index" do
@ -111,7 +111,7 @@ describe "Gitlab Flavored Markdown" do
it "should render details in issues#show" do
visit project_issue_path(project, @issue)
page.should have_link("@#{fred.name}")
page.should have_link("@#{fred.username}")
end
end
@ -142,7 +142,7 @@ describe "Gitlab Flavored Markdown" do
@milestone = create(:milestone,
project: project,
title: "fix ##{issue.id}",
description: "ask @#{fred.name} for details")
description: "ask @#{fred.username} for details")
end
it "should render title in milestones#index" do
@ -160,7 +160,7 @@ describe "Gitlab Flavored Markdown" do
it "should render description in milestones#show" do
visit project_milestone_path(project, @milestone)
page.should have_link("@#{fred.name}")
page.should have_link("@#{fred.username}")
end
end