Commit 9cba9de74a59df1b9572a5d25911a5cff9ca2322
1 parent
839e0c57
Exists in
ratings_minor_fixes
and in
4 other branches
html_safe: fix edition of highlights block
Showing
2 changed files
with
9 additions
and
1 deletions
Show diff stats
app/helpers/block_helper.rb
test/integration/safe_strings_test.rb
... | ... | @@ -155,4 +155,12 @@ class SafeStringsTest < ActionDispatch::IntegrationTest |
155 | 155 | get url_for(action: :edit, controller: :profile_design, profile: person.identifier, id: block.id) |
156 | 156 | assert_select '.block-config-options .other-block' |
157 | 157 | end |
158 | + | |
159 | + should 'not escape edit settings in highlight block' do | |
160 | + login user.login, 'test' | |
161 | + block = HighlightsBlock.new | |
162 | + person.boxes.first.blocks << block | |
163 | + get url_for(action: :edit, controller: :profile_design, profile: person.identifier, id: block.id) | |
164 | + assert_select '.block-config-options .image-data-line' | |
165 | + end | |
158 | 166 | end | ... | ... |