File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1240,7 +1240,7 @@ def initialize(server)
1240
1240
# Raises ProtocolError when the query does not seem to be a valid
1241
1241
# OpenID request.
1242
1242
def decode ( query )
1243
- if query . nil? or query . length == 0
1243
+ if query . nil? or query . empty?
1244
1244
return nil
1245
1245
end
1246
1246
Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ class CryptUtilTestCase < Minitest::Test
8
8
9
9
def test_rand
10
10
# If this is not true, the rest of our test won't work
11
- assert ( BIG . is_a? ( Bignum ) )
11
+ assert ( BIG . is_a? ( Integer ) )
12
12
13
13
# It's possible that these will be small enough for fixnums, but
14
14
# extraorindarily unlikely.
15
15
a = OpenID ::CryptUtil . rand ( BIG )
16
16
b = OpenID ::CryptUtil . rand ( BIG )
17
- assert ( a . is_a? ( Bignum ) )
18
- assert ( b . is_a? ( Bignum ) )
17
+ assert ( a . is_a? ( Integer ) )
18
+ assert ( b . is_a? ( Integer ) )
19
19
refute_equal ( a , b )
20
20
end
21
21
You can’t perform that action at this time.
0 commit comments