Skip to content

Commit

Permalink
Fixed various isolated test missing requires within AS.
Browse files Browse the repository at this point in the history
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
  • Loading branch information
joshk authored and spastorino committed Jan 12, 2011
1 parent c6d5414 commit 35d5b64
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions activesupport/test/core_ext/bigdecimal_test.rb
@@ -1,10 +1,12 @@
require 'abstract_unit'
require 'bigdecimal'
require 'active_support/core_ext/big_decimal'

class BigDecimalTest < Test::Unit::TestCase
def test_to_yaml
assert_equal("--- 100000.30020320320000000000000000000000000000001\n", BigDecimal.new('100000.30020320320000000000000000000000000000001').to_yaml)
assert_equal("--- .Inf\n", BigDecimal.new('Infinity').to_yaml)
assert_equal("--- .NaN\n", BigDecimal.new('NaN').to_yaml)
assert_equal("--- .Inf\n", BigDecimal.new('Infinity').to_yaml)
assert_equal("--- .NaN\n", BigDecimal.new('NaN').to_yaml)
assert_equal("--- -.Inf\n", BigDecimal.new('-Infinity').to_yaml)
end

Expand Down
1 change: 1 addition & 0 deletions activesupport/test/core_ext/hash_ext_test.rb
Expand Up @@ -4,6 +4,7 @@
require 'active_support/core_ext/string/access'
require 'active_support/ordered_hash'
require 'active_support/core_ext/object/conversions'
require 'active_support/inflections'

class HashExtTest < Test::Unit::TestCase
class IndifferentHash < HashWithIndifferentAccess
Expand Down
1 change: 1 addition & 0 deletions activesupport/test/json/encoding_test.rb
@@ -1,5 +1,6 @@
# encoding: utf-8
require 'abstract_unit'
require 'active_support/core_ext/string/inflections'
require 'active_support/json'

class TestJSONEncoding < Test::Unit::TestCase
Expand Down

0 comments on commit 35d5b64

Please sign in to comment.