mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-27 02:28:50 +01:00
Allow translation content styling through scrubber
This commit is contained in:
@@ -22,4 +22,12 @@ class ProblemsControllerTest < ActionDispatch::IntegrationTest
|
||||
assert_redirected_to problem_path(id: 2)
|
||||
end
|
||||
|
||||
test "should contain HTML styles in translation content" do
|
||||
get problem_url(id: 4)
|
||||
assert_response :success
|
||||
assert_select ".problem-content" do
|
||||
assert_select "b", 1
|
||||
assert_select 'p[style="text-align:center;"]', 1
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user