Permalink
Browse files

Fix Fixnum deprecation warnings. (#282)

Fixnum is being deprecated and merged with Bignum into Integer
(http://blog.bigbinary.com/2016/11/18/ruby-2-4-unifies-fixnum-and-bignum-into-integer.html)

This PR replaces Fixnum with Integer (in the tests) and fixes the
deprecation warnings
  • Loading branch information...
patrickdavey authored and brendon committed Jun 18, 2017
1 parent 0adb6e8 commit 2e6a6149bd5d2590b4c00d4c24bfceca56bb67c2
Binary file not shown.
@@ -62,7 +62,7 @@ def test_insert
new = ArrayScopeListMixin.acts_as_list_no_update { ArrayScopeListMixin.create(parent_id: 20, parent_type: 'ParentClass') }
assert_equal_or_nil $default_position,new.pos
assert_equal $default_position.is_a?(Fixnum), new.first?
assert_equal $default_position.is_a?(Integer), new.first?
assert !new.last?
new = ArrayScopeListMixin.create(parent_id: 20, parent_type: 'ParentClass')
View
@@ -62,7 +62,7 @@ def test_insert
new = ListMixin.acts_as_list_no_update { ListMixin.create(parent_id: 20) }
assert_equal_or_nil $default_position, new.pos
assert_equal $default_position.is_a?(Fixnum), new.first?
assert_equal $default_position.is_a?(Integer), new.first?
assert !new.last?
new = ListMixin.create(parent_id: 20)
@@ -48,7 +48,7 @@ def test_insert
new = TopAdditionMixin.acts_as_list_no_update { TopAdditionMixin.create(parent_id: 20) }
assert_equal_or_nil $default_position, new.pos
assert_equal $default_position.is_a?(Fixnum), new.first?
assert_equal $default_position.is_a?(Integer), new.first?
assert !new.last?
new = TopAdditionMixin.create(parent_id: 20)
View
@@ -327,7 +327,7 @@ def test_insert
new = DefaultScopedMixin.acts_as_list_no_update { DefaultScopedMixin.create }
assert_equal_or_nil $default_position, new.pos
assert_equal $default_position.is_a?(Fixnum), new.first?
assert_equal $default_position.is_a?(Integer), new.first?
assert !new.last?
new = DefaultScopedMixin.create
@@ -431,7 +431,7 @@ def test_insert
new = DefaultScopedWhereMixin.acts_as_list_no_update { DefaultScopedWhereMixin.create }
assert_equal_or_nil $default_position, new.pos
assert_equal $default_position.is_a?(Fixnum), new.first?
assert_equal $default_position.is_a?(Integer), new.first?
assert !new.last?
new = DefaultScopedWhereMixin.create

0 comments on commit 2e6a614

Please sign in to comment.