Skip to content

Commit a686229

Browse files
committed
Stub out String#b for Ruby 1.9
1 parent 7a4dda5 commit a686229

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/test_helper.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
require 'net/ldap'
44
require 'flexmock/test_unit'
55

6+
if RUBY_VERSION < "2.0"
7+
class String
8+
def b
9+
self
10+
end
11+
end
12+
end
13+
614
class MockInstrumentationService
715
def initialize
816
@events = {}

0 commit comments

Comments
 (0)