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
Kazuhiko Shiozaki
gitlab-ce
Commits
e013cd44
Commit
e013cd44
authored
Jan 23, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mr specs
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
4cde3593
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
spec/models/merge_request_spec.rb
spec/models/merge_request_spec.rb
+3
-4
No files found.
spec/models/merge_request_spec.rb
View file @
e013cd44
...
@@ -73,14 +73,13 @@ describe MergeRequest do
...
@@ -73,14 +73,13 @@ describe MergeRequest do
describe
'#for_fork?'
do
describe
'#for_fork?'
do
it
'returns true if the merge request is for a fork'
do
it
'returns true if the merge request is for a fork'
do
subject
.
source_project
=
create
(
:
source_project
)
subject
.
source_project
=
create
(
:
project
,
namespace:
create
(
:group
)
)
subject
.
target_project
=
create
(
:
target_project
)
subject
.
target_project
=
create
(
:
project
,
namespace:
create
(
:group
)
)
subject
.
for_fork?
.
should
be_true
subject
.
for_fork?
.
should
be_true
end
end
it
'returns false if is not for a fork'
do
it
'returns false if is not for a fork'
do
subject
.
source_project
=
create
(
:source_project
)
subject
.
target_project
=
subject
.
source_project
subject
.
for_fork?
.
should
be_false
subject
.
for_fork?
.
should
be_false
end
end
end
end
...
...
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