Patch #32054 » test_for_emoji_support.patch
test/unit/issue_test.rb | ||
---|---|---|
218 | 218 |
assert_equal issues.collect(&:id).sort, Issue.all.select {|issue| issue.visible?(user)}.collect(&:id).sort |
219 | 219 |
end |
220 | 220 | |
221 |
def test_create_with_emoji_character |
|
222 |
set_language_if_valid 'en' |
|
223 |
issue = Issue.new(:project_id => 1, :tracker_id => 1, |
|
224 |
:author_id => 1, :subject => 'Group assignment', |
|
225 |
:description => 'Hello 😀') |
|
226 |
assert issue.save |
|
227 |
assert_equal 'Hello 😀', issue.description |
|
228 |
end |
|
229 | ||
221 | 230 |
def test_visible_scope_for_anonymous |
222 | 231 |
# Anonymous user should see issues of public projects only |
223 | 232 |
issues = Issue.visible(User.anonymous).to_a |