summaryrefslogtreecommitdiffhomepage
path: root/test/util
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2013-04-23 19:55:05 +0900
committerRandy Morgan <[email protected]>2013-04-23 19:55:05 +0900
commit62c22d6b0855753dcf0db6b9a01338a267de32fd (patch)
tree4cfc20863f3d76eafc68e31bc2909b88d1c3cc39 /test/util
parent6f71a85f7f0cda1e2b3f8e99657fd78c628eef12 (diff)
downloadcaxlsx-62c22d6b0855753dcf0db6b9a01338a267de32fd.tar.gz
caxlsx-62c22d6b0855753dcf0db6b9a01338a267de32fd.zip
Altered integerish test to use a Class
The validator will try to cast whatever it is fed to_i. Unfortunately in 1.8.7 Symbol supports to_i.
Diffstat (limited to 'test/util')
-rw-r--r--test/util/tc_validators.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/util/tc_validators.rb b/test/util/tc_validators.rb
index b4c9248d..7a82f90d 100644
--- a/test/util/tc_validators.rb
+++ b/test/util/tc_validators.rb
@@ -160,7 +160,7 @@ class TestValidators < Test::Unit::TestCase
end
def test_validate_integerish
- assert_raise(ArgumentError) { Axlsx.validate_integerish :foo }
+ assert_raise(ArgumentError) { Axlsx.validate_integerish Axlsx }
[1, 1.4, "a"].each { |test_value| assert_nothing_raised { Axlsx.validate_integerish test_value } }
end
def test_validate_family