Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e9f1c39e
Commit
e9f1c39e
authored
Aug 20, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
parent
9acaec7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
spec/features/gitlab_flavored_markdown_spec.rb
spec/features/gitlab_flavored_markdown_spec.rb
+13
-13
spec/models/project_spec.rb
spec/models/project_spec.rb
+2
-2
No files found.
spec/features/gitlab_flavored_markdown_spec.rb
View file @
e9f1c39e
...
@@ -11,7 +11,7 @@ describe "GitLab Flavored Markdown" do
...
@@ -11,7 +11,7 @@ describe "GitLab Flavored Markdown" do
end
end
before
do
before
do
Commit
.
any_instance
.
stub
(
title:
"fix #
#{
issue
.
id
}
\n\n
ask @
#{
fred
.
username
}
for details"
)
Commit
.
any_instance
.
stub
(
title:
"fix #
#{
issue
.
i
i
d
}
\n\n
ask @
#{
fred
.
username
}
for details"
)
end
end
let
(
:commit
)
{
project
.
repository
.
commit
}
let
(
:commit
)
{
project
.
repository
.
commit
}
...
@@ -25,13 +25,13 @@ describe "GitLab Flavored Markdown" do
...
@@ -25,13 +25,13 @@ describe "GitLab Flavored Markdown" do
it
"should render title in commits#index"
do
it
"should render title in commits#index"
do
visit
project_commits_path
(
project
,
'master'
,
limit:
1
)
visit
project_commits_path
(
project
,
'master'
,
limit:
1
)
page
.
should
have_link
(
"#
#{
issue
.
id
}
"
)
page
.
should
have_link
(
"#
#{
issue
.
i
i
d
}
"
)
end
end
it
"should render title in commits#show"
do
it
"should render title in commits#show"
do
visit
project_commit_path
(
project
,
commit
)
visit
project_commit_path
(
project
,
commit
)
page
.
should
have_link
(
"#
#{
issue
.
id
}
"
)
page
.
should
have_link
(
"#
#{
issue
.
i
i
d
}
"
)
end
end
it
"should render description in commits#show"
do
it
"should render description in commits#show"
do
...
@@ -43,7 +43,7 @@ describe "GitLab Flavored Markdown" do
...
@@ -43,7 +43,7 @@ describe "GitLab Flavored Markdown" do
it
"should render title in repositories#branches"
do
it
"should render title in repositories#branches"
do
visit
project_branches_path
(
project
)
visit
project_branches_path
(
project
)
page
.
should
have_link
(
"#
#{
issue
.
id
}
"
)
page
.
should
have_link
(
"#
#{
issue
.
i
i
d
}
"
)
end
end
end
end
...
@@ -57,20 +57,20 @@ describe "GitLab Flavored Markdown" do
...
@@ -57,20 +57,20 @@ describe "GitLab Flavored Markdown" do
author:
@user
,
author:
@user
,
assignee:
@user
,
assignee:
@user
,
project:
project
,
project:
project
,
title:
"fix #
#{
@other_issue
.
id
}
"
,
title:
"fix #
#{
@other_issue
.
i
i
d
}
"
,
description:
"ask @
#{
fred
.
username
}
for details"
)
description:
"ask @
#{
fred
.
username
}
for details"
)
end
end
it
"should render subject in issues#index"
do
it
"should render subject in issues#index"
do
visit
project_issues_path
(
project
)
visit
project_issues_path
(
project
)
page
.
should
have_link
(
"#
#{
@other_issue
.
id
}
"
)
page
.
should
have_link
(
"#
#{
@other_issue
.
i
i
d
}
"
)
end
end
it
"should render subject in issues#show"
do
it
"should render subject in issues#show"
do
visit
project_issue_path
(
project
,
@issue
)
visit
project_issue_path
(
project
,
@issue
)
page
.
should
have_link
(
"#
#{
@other_issue
.
id
}
"
)
page
.
should
have_link
(
"#
#{
@other_issue
.
i
i
d
}
"
)
end
end
it
"should render details in issues#show"
do
it
"should render details in issues#show"
do
...
@@ -83,19 +83,19 @@ describe "GitLab Flavored Markdown" do
...
@@ -83,19 +83,19 @@ describe "GitLab Flavored Markdown" do
describe
"for merge requests"
do
describe
"for merge requests"
do
before
do
before
do
@merge_request
=
create
(
:merge_request
,
source_project:
project
,
target_project:
project
,
title:
"fix #
#{
issue
.
id
}
"
)
@merge_request
=
create
(
:merge_request
,
source_project:
project
,
target_project:
project
,
title:
"fix #
#{
issue
.
i
i
d
}
"
)
end
end
it
"should render title in merge_requests#index"
do
it
"should render title in merge_requests#index"
do
visit
project_merge_requests_path
(
project
)
visit
project_merge_requests_path
(
project
)
page
.
should
have_link
(
"#
#{
issue
.
id
}
"
)
page
.
should
have_link
(
"#
#{
issue
.
i
i
d
}
"
)
end
end
it
"should render title in merge_requests#show"
do
it
"should render title in merge_requests#show"
do
visit
project_merge_request_path
(
project
,
@merge_request
)
visit
project_merge_request_path
(
project
,
@merge_request
)
page
.
should
have_link
(
"#
#{
issue
.
id
}
"
)
page
.
should
have_link
(
"#
#{
issue
.
i
i
d
}
"
)
end
end
end
end
...
@@ -104,20 +104,20 @@ describe "GitLab Flavored Markdown" do
...
@@ -104,20 +104,20 @@ describe "GitLab Flavored Markdown" do
before
do
before
do
@milestone
=
create
(
:milestone
,
@milestone
=
create
(
:milestone
,
project:
project
,
project:
project
,
title:
"fix #
#{
issue
.
id
}
"
,
title:
"fix #
#{
issue
.
i
i
d
}
"
,
description:
"ask @
#{
fred
.
username
}
for details"
)
description:
"ask @
#{
fred
.
username
}
for details"
)
end
end
it
"should render title in milestones#index"
do
it
"should render title in milestones#index"
do
visit
project_milestones_path
(
project
)
visit
project_milestones_path
(
project
)
page
.
should
have_link
(
"#
#{
issue
.
id
}
"
)
page
.
should
have_link
(
"#
#{
issue
.
i
i
d
}
"
)
end
end
it
"should render title in milestones#show"
do
it
"should render title in milestones#show"
do
visit
project_milestone_path
(
project
,
@milestone
)
visit
project_milestone_path
(
project
,
@milestone
)
page
.
should
have_link
(
"#
#{
issue
.
id
}
"
)
page
.
should
have_link
(
"#
#{
issue
.
i
i
d
}
"
)
end
end
it
"should render description in milestones#show"
do
it
"should render description in milestones#show"
do
...
...
spec/models/project_spec.rb
View file @
e9f1c39e
...
@@ -201,11 +201,11 @@ describe Project do
...
@@ -201,11 +201,11 @@ describe Project do
let
(
:ext_project
)
{
create
(
:redmine_project
)
}
let
(
:ext_project
)
{
create
(
:redmine_project
)
}
it
"should be true or if used internal tracker and issue exists"
do
it
"should be true or if used internal tracker and issue exists"
do
project
.
issue_exists?
(
existed_issue
.
id
).
should
be_true
project
.
issue_exists?
(
existed_issue
.
i
i
d
).
should
be_true
end
end
it
"should be false or if used internal tracker and issue not exists"
do
it
"should be false or if used internal tracker and issue not exists"
do
project
.
issue_exists?
(
not_existed_issue
.
id
).
should
be_false
project
.
issue_exists?
(
not_existed_issue
.
i
i
d
).
should
be_false
end
end
it
"should always be true if used other tracker"
do
it
"should always be true if used other tracker"
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment