Feature #20620 ยป 20620.patch
| app/views/layouts/base.html.erb | ||
|---|---|---|
|
<!-- page specific tags -->
|
||
|
<%= yield :header_tags -%>
|
||
|
</head>
|
||
|
<body class="<%= body_css_classes %>">
|
||
|
<body class="<%= body_css_classes %>" data-text-formatting="<%= Setting.text_formatting %>">
|
||
|
<%= call_hook :view_layouts_base_body_top %>
|
||
|
<div id="wrapper">
|
||
| test/functional/welcome_controller_test.rb | ||
|---|---|---|
|
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
|
||