aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxed.co>2016-11-13 15:57:42 +0000
committerAndrew White <andrew.white@unboxed.co>2016-11-13 15:57:42 +0000
commit60d82fa14105e63e2aac4ecf15afc9aaf732f3c2 (patch)
treec1f2a8b1a0caadfec47968439118a1c34f7dd979
parentd2890f76d49542ab853bfcbe5f1c4c6924231591 (diff)
downloadrails-60d82fa14105e63e2aac4ecf15afc9aaf732f3c2.tar.gz
rails-60d82fa14105e63e2aac4ecf15afc9aaf732f3c2.tar.bz2
rails-60d82fa14105e63e2aac4ecf15afc9aaf732f3c2.zip
It's a NAN not Infinity
-rw-r--r--activesupport/test/json/encoding_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/json/encoding_test.rb b/activesupport/test/json/encoding_test.rb
index 95bdc4283a..7d6ab585ef 100644
--- a/activesupport/test/json/encoding_test.rb
+++ b/activesupport/test/json/encoding_test.rb
@@ -444,7 +444,7 @@ EXPECTED
class NaNNumber
def as_json(options = nil)
- { "number" => Float::INFINITY }
+ { "number" => Float:NAN }
end
end