fixtures :projects, :users, :roles, :members, :member_roles,
:enabled_modules, :enumerations,
:custom_fields, :custom_values, :custom_fields_trackers,
- :watchers, :boards, :messages
+ :watchers, :boards, :messages, :attachments
def test_reply_to_topic_message
with_text_formatting 'common_mark' do
fixtures :issues
def test_quote_reply
- url = quoted_issue_path(issues(:issues_001))
+ with_locale 'en' do
+ url = quoted_issue_path(issues(:issues_001))
- a_tag = quote_reply(url, '#issue_description_wiki')
- assert_includes a_tag, %|onclick="#{h "quoteReply('/issues/1/quoted', '#issue_description_wiki', 'common_mark'); return false;"}"|
- assert_includes a_tag, %|class="icon icon-comment"|
- assert_not_includes a_tag, 'title='
+ a_tag = quote_reply(url, '#issue_description_wiki')
+ assert_includes a_tag, %|onclick="#{h "quoteReply('/issues/1/quoted', '#issue_description_wiki', 'common_mark'); return false;"}"|
+ assert_includes a_tag, %|class="icon icon-comment"|
+ assert_not_includes a_tag, 'title='
- # When icon_only is true
- a_tag = quote_reply(url, '#issue_description_wiki', icon_only: true)
- assert_includes a_tag, %|title="Quote"|
+ # When icon_only is true
+ a_tag = quote_reply(url, '#issue_description_wiki', icon_only: true)
+ assert_includes a_tag, %|title="Quote"|
+ end
end
end