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
0
Merge Requests
0
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
Jérome Perrin
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
end
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
let
(
:commit
)
{
project
.
repository
.
commit
}
...
...
@@ -25,13 +25,13 @@ describe "GitLab Flavored Markdown" do
it
"should render title in commits#index"
do
visit
project_commits_path
(
project
,
'master'
,
limit:
1
)
page
.
should
have_link
(
"#
#{
issue
.
id
}
"
)
page
.
should
have_link
(
"#
#{
issue
.
i
i
d
}
"
)
end
it
"should render title in commits#show"
do
visit
project_commit_path
(
project
,
commit
)
page
.
should
have_link
(
"#
#{
issue
.
id
}
"
)
page
.
should
have_link
(
"#
#{
issue
.
i
i
d
}
"
)
end
it
"should render description in commits#show"
do
...
...
@@ -43,7 +43,7 @@ describe "GitLab Flavored Markdown" do
it
"should render title in repositories#branches"
do
visit
project_branches_path
(
project
)
page
.
should
have_link
(
"#
#{
issue
.
id
}
"
)
page
.
should
have_link
(
"#
#{
issue
.
i
i
d
}
"
)
end
end
...
...
@@ -57,20 +57,20 @@ describe "GitLab Flavored Markdown" do
author:
@user
,
assignee:
@user
,
project:
project
,
title:
"fix #
#{
@other_issue
.
id
}
"
,
title:
"fix #
#{
@other_issue
.
i
i
d
}
"
,
description:
"ask @
#{
fred
.
username
}
for details"
)
end
it
"should render subject in issues#index"
do
visit
project_issues_path
(
project
)
page
.
should
have_link
(
"#
#{
@other_issue
.
id
}
"
)
page
.
should
have_link
(
"#
#{
@other_issue
.
i
i
d
}
"
)
end
it
"should render subject in issues#show"
do
visit
project_issue_path
(
project
,
@issue
)
page
.
should
have_link
(
"#
#{
@other_issue
.
id
}
"
)
page
.
should
have_link
(
"#
#{
@other_issue
.
i
i
d
}
"
)
end
it
"should render details in issues#show"
do
...
...
@@ -83,19 +83,19 @@ describe "GitLab Flavored Markdown" do
describe
"for merge requests"
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
it
"should render title in merge_requests#index"
do
visit
project_merge_requests_path
(
project
)
page
.
should
have_link
(
"#
#{
issue
.
id
}
"
)
page
.
should
have_link
(
"#
#{
issue
.
i
i
d
}
"
)
end
it
"should render title in merge_requests#show"
do
visit
project_merge_request_path
(
project
,
@merge_request
)
page
.
should
have_link
(
"#
#{
issue
.
id
}
"
)
page
.
should
have_link
(
"#
#{
issue
.
i
i
d
}
"
)
end
end
...
...
@@ -104,20 +104,20 @@ describe "GitLab Flavored Markdown" do
before
do
@milestone
=
create
(
:milestone
,
project:
project
,
title:
"fix #
#{
issue
.
id
}
"
,
title:
"fix #
#{
issue
.
i
i
d
}
"
,
description:
"ask @
#{
fred
.
username
}
for details"
)
end
it
"should render title in milestones#index"
do
visit
project_milestones_path
(
project
)
page
.
should
have_link
(
"#
#{
issue
.
id
}
"
)
page
.
should
have_link
(
"#
#{
issue
.
i
i
d
}
"
)
end
it
"should render title in milestones#show"
do
visit
project_milestone_path
(
project
,
@milestone
)
page
.
should
have_link
(
"#
#{
issue
.
id
}
"
)
page
.
should
have_link
(
"#
#{
issue
.
i
i
d
}
"
)
end
it
"should render description in milestones#show"
do
...
...
spec/models/project_spec.rb
View file @
e9f1c39e
...
...
@@ -201,11 +201,11 @@ describe Project do
let
(
:ext_project
)
{
create
(
:redmine_project
)
}
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
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
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