9 rubyspec failures for SecureRandom
------------------------------------

                 Key: JRUBY-4022
                 URL: http://jira.codehaus.org/browse/JRUBY-4022
             Project: JRuby
          Issue Type: Bug
          Components: RubySpec
    Affects Versions: JRuby 1.3.1
         Environment: jruby 1.4.0dev (ruby 1.8.7 patchlevel 174) (2009-09-30 
bf2a7cb) (Java HotSpot(TM) Client VM 1.6.0_03) [i386-java]
            Reporter: Vladimir Sizikov
            Assignee: Vladimir Sizikov


9 rubyspec failures. Fix is coming.

{noformat}
#>jruby -S mspec library/securerandom
jruby 1.4.0dev (ruby 1.8.7 patchlevel 174) (2009-09-30 bf2a7cb) (Java 
HotSpot(TM) Client VM 1.6.0_03) [i386-java]
E.....EE.....E..E..E.....

1)
SecureRandom.base64 generates a random base64 string out of specified number of 
random bytes ERROR
ArgumentError: non-integer argument: 16.5
/opt/work/jruby/lib/ruby/site_ruby/shared/securerandom.rb:50:in `random_bytes'
/opt/work/jruby/lib/ruby/site_ruby/shared/securerandom.rb:83:in `base64'
/opt/work/rubyspec.git/library/securerandom/base64_spec.rb:15
/opt/work/rubyspec.git/library/securerandom/base64_spec.rb:6
/opt/work/rubyspec.git/library/securerandom/base64_spec.rb:3
/opt/work/rubyspec.git/library/securerandom/base64_spec.rb:55:in `load'
/opt/work/mspec.git/bin/mspec-run:8

2)
SecureRandom.base64 tries to convert the passed argument to an Integer using 
#to_int ERROR
ArgumentError: non-integer argument: #<MockObject:0xe7d53>
/opt/work/jruby/lib/ruby/site_ruby/shared/securerandom.rb:50:in `random_bytes'
/opt/work/jruby/lib/ruby/site_ruby/shared/securerandom.rb:83:in `base64'
/opt/work/rubyspec.git/library/securerandom/base64_spec.rb:54
/opt/work/rubyspec.git/library/securerandom/base64_spec.rb:6
/opt/work/rubyspec.git/library/securerandom/base64_spec.rb:3
/opt/work/rubyspec.git/library/securerandom/base64_spec.rb:55:in `load'
/opt/work/mspec.git/bin/mspec-run:8

3)
An exception occurred during: Mock.verify_count
SecureRandom.base64 tries to convert the passed argument to an Integer using 
#to_int FAILED
Mock 'to_int' expected to receive 'to_int' exactly 1 times
but received it 0 times
/opt/work/rubyspec.git/library/securerandom/base64_spec.rb:6
/opt/work/rubyspec.git/library/securerandom/base64_spec.rb:3
/opt/work/rubyspec.git/library/securerandom/base64_spec.rb:55:in `load'
/opt/work/mspec.git/bin/mspec-run:8

4)
SecureRandom.hex generates a random hex string of length twice the specified 
argement ERROR
ArgumentError: non-integer argument: 5.5
/opt/work/jruby/lib/ruby/site_ruby/shared/securerandom.rb:50:in `random_bytes'
/opt/work/jruby/lib/ruby/site_ruby/shared/securerandom.rb:69:in `hex'
/opt/work/rubyspec.git/library/securerandom/hex_spec.rb:14
/opt/work/rubyspec.git/library/securerandom/hex_spec.rb:6
/opt/work/rubyspec.git/library/securerandom/hex_spec.rb:3
/opt/work/rubyspec.git/library/securerandom/hex_spec.rb:55:in `load'
/opt/work/mspec.git/bin/mspec-run:8

5)
SecureRandom.hex tries to convert the passed argument to an Integer using 
#to_int ERROR
ArgumentError: non-integer argument: #<MockObject:0x1e88b35>
/opt/work/jruby/lib/ruby/site_ruby/shared/securerandom.rb:50:in `random_bytes'
/opt/work/jruby/lib/ruby/site_ruby/shared/securerandom.rb:69:in `hex'
/opt/work/rubyspec.git/library/securerandom/hex_spec.rb:53
/opt/work/rubyspec.git/library/securerandom/hex_spec.rb:6
/opt/work/rubyspec.git/library/securerandom/hex_spec.rb:3
/opt/work/rubyspec.git/library/securerandom/hex_spec.rb:55:in `load'
/opt/work/mspec.git/bin/mspec-run:8

6)
An exception occurred during: Mock.verify_count
SecureRandom.hex tries to convert the passed argument to an Integer using 
#to_int FAILED
Mock 'to_int' expected to receive 'to_int' exactly 1 times
but received it 0 times
/opt/work/rubyspec.git/library/securerandom/hex_spec.rb:6
/opt/work/rubyspec.git/library/securerandom/hex_spec.rb:3
/opt/work/rubyspec.git/library/securerandom/hex_spec.rb:55:in `load'
/opt/work/mspec.git/bin/mspec-run:8

7)
SecureRandom.random_bytes generates a random binary string of specified length 
ERROR
ArgumentError: non-integer argument: 2.2
/opt/work/jruby/lib/ruby/site_ruby/shared/securerandom.rb:50:in `random_bytes'
/opt/work/rubyspec.git/library/securerandom/random_bytes_spec.rb:26
/opt/work/rubyspec.git/library/securerandom/random_bytes_spec.rb:6
/opt/work/rubyspec.git/library/securerandom/random_bytes_spec.rb:3
/opt/work/rubyspec.git/library/securerandom/random_bytes_spec.rb:55:in `load'
/opt/work/mspec.git/bin/mspec-run:8

8)
SecureRandom.random_bytes tries to convert the passed argument to an Integer 
using #to_int ERROR
ArgumentError: non-integer argument: #<MockObject:0xd37b87>
/opt/work/jruby/lib/ruby/site_ruby/shared/securerandom.rb:50:in `random_bytes'
/opt/work/rubyspec.git/library/securerandom/random_bytes_spec.rb:49
/opt/work/rubyspec.git/library/securerandom/random_bytes_spec.rb:6
/opt/work/rubyspec.git/library/securerandom/random_bytes_spec.rb:3
/opt/work/rubyspec.git/library/securerandom/random_bytes_spec.rb:55:in `load'
/opt/work/mspec.git/bin/mspec-run:8

9)
An exception occurred during: Mock.verify_count
SecureRandom.random_bytes tries to convert the passed argument to an Integer 
using #to_int FAILED
Mock 'to_int' expected to receive 'to_int' exactly 1 times
but received it 0 times
/opt/work/rubyspec.git/library/securerandom/random_bytes_spec.rb:6
/opt/work/rubyspec.git/library/securerandom/random_bytes_spec.rb:3
/opt/work/rubyspec.git/library/securerandom/random_bytes_spec.rb:55:in `load'
/opt/work/mspec.git/bin/mspec-run:8

Finished in 0.672000 seconds

4 files, 25 examples, 2027 expectations, 3 failures, 6 errors
{noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to