Skip to content

Commit

Permalink
Fix ActiveResource load test for 64bit machines [#3051 state:resolved]
Browse files Browse the repository at this point in the history
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information
rubymerchant authored and lifo committed Aug 15, 2009
1 parent a249cad commit dbc62ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions activeresource/test/base/load_test.rb
Expand Up @@ -50,8 +50,8 @@ def setup
:notable_rivers => [ :notable_rivers => [
{ :id => 1, :name => 'Willamette' }, { :id => 1, :name => 'Willamette' },
{ :id => 2, :name => 'Columbia', :rafted_by => @matz }], { :id => 2, :name => 'Columbia', :rafted_by => @matz }],
:postal_codes => [97018,1234567890], :postal_codes => [ 97018, 1234567890 ],
:places => ["Columbia City", "Unknown"]}}} :places => [ "Columbia City", "Unknown" ]}}}


@person = Person.new @person = Person.new
end end
Expand Down Expand Up @@ -133,7 +133,7 @@ def test_recursively_loaded_collections
assert_equal 2, postal_codes.size assert_equal 2, postal_codes.size
assert_kind_of Fixnum, postal_codes.first assert_kind_of Fixnum, postal_codes.first
assert_equal @deep[:street][:state][:postal_codes].first, 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 assert_equal @deep[:street][:state][:postal_codes].last, postal_codes.last


places = state.places places = state.places
Expand Down

0 comments on commit dbc62ad

Please sign in to comment.