mirror of
https://github.com/redmine/redmine.git
synced 2026-08-30 11:18:09 +02:00
Add data-text-formatting attribute for selected markup language to body tag (#20620).
Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22472 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -117,6 +117,16 @@ class WelcomeControllerTest < Redmine::ControllerTest
|
||||
assert_select 'body.textarea-proportional'
|
||||
end
|
||||
|
||||
def test_data_text_setting_attribute
|
||||
formats = %w(textile common_mark)
|
||||
formats.each do |format|
|
||||
with_settings text_formatting: format do
|
||||
get :index
|
||||
assert_select 'body[data-text-formatting=?]', format
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def test_logout_link_should_post
|
||||
@request.session[:user_id] = 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user