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
cd7f03ef
Commit
cd7f03ef
authored
Jul 10, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec/helpers/award_emoji_helper_spec.rb by using `iid` instead of `id`
Closes gitlab-org/gitlab-ee#2890
parent
31ada792
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/helpers/award_emoji_helper_spec.rb
spec/helpers/award_emoji_helper_spec.rb
+2
-2
No files found.
spec/helpers/award_emoji_helper_spec.rb
View file @
cd7f03ef
...
...
@@ -40,7 +40,7 @@ describe AwardEmojiHelper do
it
'returns correct url'
do
@project
=
merge_request
.
project
expected_url
=
"/
#{
@project
.
namespace
.
path
}
/
#{
@project
.
path
}
/merge_requests/
#{
merge_request
.
id
}
/toggle_award_emoji"
expected_url
=
"/
#{
@project
.
namespace
.
path
}
/
#{
@project
.
path
}
/merge_requests/
#{
merge_request
.
i
i
d
}
/toggle_award_emoji"
expect
(
helper
.
toggle_award_url
(
merge_request
)).
to
eq
(
expected_url
)
end
...
...
@@ -52,7 +52,7 @@ describe AwardEmojiHelper do
it
'returns correct url'
do
@project
=
issue
.
project
expected_url
=
"/
#{
@project
.
namespace
.
path
}
/
#{
@project
.
path
}
/issues/
#{
issue
.
id
}
/toggle_award_emoji"
expected_url
=
"/
#{
@project
.
namespace
.
path
}
/
#{
@project
.
path
}
/issues/
#{
issue
.
i
i
d
}
/toggle_award_emoji"
expect
(
helper
.
toggle_award_url
(
issue
)).
to
eq
(
expected_url
)
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