spec/spec_helper.rb in net-ldap-0.6.1 vs spec/spec_helper.rb in net-ldap-0.7.0

- old
+ new

@@ -1,5 +1,10 @@ require 'net/ldap' RSpec.configure do |config| config.mock_with :flexmock + + def raw_string(s) + # Conveniently, String#b only needs to be called when it exists + s.respond_to?(:b) ? s.b : s + end end