diff --git a/test/sanitizer_test.rb b/test/sanitizer_test.rb index 7bcab6f..340565e 100644 --- a/test/sanitizer_test.rb +++ b/test/sanitizer_test.rb @@ -485,35 +485,43 @@ def test_allow_data_attribute_if_requested end def test_uri_escaping_of_href_attr_in_a_tag_in_white_list_sanitizer + skip if RUBY_VERSION < "2.3" + html = %{test} text = white_list_sanitize(html) - assert_equal %{test}, text + assert_equal %{test}, text end def test_uri_escaping_of_src_attr_in_a_tag_in_white_list_sanitizer + skip if RUBY_VERSION < "2.3" + html = %{test} text = white_list_sanitize(html) - assert_equal %{test}, text + assert_equal %{test}, text end def test_uri_escaping_of_name_attr_in_a_tag_in_white_list_sanitizer + skip if RUBY_VERSION < "2.3" + html = %{test} text = white_list_sanitize(html) - assert_equal %{test}, text + assert_equal %{test}, text end def test_uri_escaping_of_name_action_in_a_tag_in_white_list_sanitizer + skip if RUBY_VERSION < "2.3" + html = %{test} text = white_list_sanitize(html, attributes: ['action']) - assert_equal %{test}, text + assert_equal %{test}, text end protected