aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource
diff options
context:
space:
mode:
authorJatinder Singh <jatinder.saundh@gmail.com>2009-08-14 05:00:22 -0700
committerPratik Naik <pratiknaik@gmail.com>2009-08-15 20:29:37 +0100
commita363dba790d9d9f6284f7f857d872eca124805ee (patch)
treea6002e56cd201bff1ecfc0ea61317016017bedab /activeresource
parent26e4d688aca9c28cceccc72fc00d8ea93e067ddf (diff)
downloadrails-a363dba790d9d9f6284f7f857d872eca124805ee.tar.gz
rails-a363dba790d9d9f6284f7f857d872eca124805ee.tar.bz2
rails-a363dba790d9d9f6284f7f857d872eca124805ee.zip
Fix ActiveResource load test for 64bit machines [#3051 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activeresource')
-rw-r--r--activeresource/test/base/load_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activeresource/test/base/load_test.rb b/activeresource/test/base/load_test.rb
index 5f5a580445..1952f5b5f0 100644
--- a/activeresource/test/base/load_test.rb
+++ b/activeresource/test/base/load_test.rb
@@ -52,8 +52,8 @@ class BaseLoadTest < Test::Unit::TestCase
:notable_rivers => [
{ :id => 1, :name => 'Willamette' },
{ :id => 2, :name => 'Columbia', :rafted_by => @matz }],
- :postal_codes => [97018,1234567890],
- :places => ["Columbia City", "Unknown"]}}}
+ :postal_codes => [ 97018, 1234567890 ],
+ :places => [ "Columbia City", "Unknown" ]}}}
@person = Person.new
end
@@ -135,7 +135,7 @@ class BaseLoadTest < Test::Unit::TestCase
assert_equal 2, postal_codes.size
assert_kind_of Fixnum, postal_codes.first
assert_equal @deep[:street][:state][:postal_codes].first, postal_codes.first
- assert_kind_of Bignum, postal_codes.last
+ assert_kind_of Numeric, postal_codes.last
assert_equal @deep[:street][:state][:postal_codes].last, postal_codes.last
places = state.places