Permalink
Browse files

Fixed test errors in Plessey and MSI.

  • Loading branch information...
mdchaney committed Sep 27, 2012
1 parent 24f8a55 commit 432c7a20d9d9e49f84e1025e4ae392db7b1b1b80
Showing with 3 additions and 3 deletions.
  1. +1 −1 barcode1dtools.gemspec
  2. +1 −1 test/test_barcode1dmsi.rb
  3. +1 −1 test/test_barcode1dplessey.rb
View
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'barcode1dtools'
- s.version = '0.9.9.3'
+ s.version = '0.9.9.4'
s.licenses = ['MIT', 'GPL-2']
s.platform = Gem::Platform::RUBY
s.date = '2012-09-22'
@@ -17,7 +17,7 @@ def teardown
# Creates a random number from 1 to 10 digits long
def random_msi_value(len)
- (1..1+rand(len)).collect { "0123456789"[rand(11),1] }.join
+ rand(10**len).to_s
end
def test_checksum_generation
@@ -17,7 +17,7 @@ def teardown
# Creates a random number from 1 to 10 digits long
def random_plessey_value(len)
- (1..1+rand(len)).collect { "0123456789"[rand(11),1] }.join
+ rand(10**len).to_s
end
def test_attr_readers

0 comments on commit 432c7a2

Please sign in to comment.