Browse files

Require active_support/core_ext/string/output_safety and use html_saf…

…e rather than use non-public SafeBuffer API.
  • Loading branch information...
1 parent 9c8242e commit 3703a8ae9b74ef76551a1e95d4d31aa9fce72eb3 @mjtko mjtko committed May 12, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 activesupport/test/number_helper_test.rb
View
3 activesupport/test/number_helper_test.rb
@@ -1,5 +1,6 @@
require 'abstract_unit'
require 'active_support/number_helper'
+require 'active_support/core_ext/string/output_safety'
module ActiveSupport
module NumberHelper
@@ -97,7 +98,7 @@ def test_to_delimited
assert_equal("123,456,789.78901", number_helper.number_to_delimited(123456789.78901))
assert_equal("0.78901", number_helper.number_to_delimited(0.78901))
assert_equal("123,456.78", number_helper.number_to_delimited("123456.78"))
- assert_equal("123,456.78", number_helper.number_to_delimited(ActiveSupport::SafeBuffer.new("123456.78")))
+ assert_equal("123,456.78", number_helper.number_to_delimited("123456.78".html_safe))
end
end

0 comments on commit 3703a8a

Please sign in to comment.