Sha256: 4c77ec0a8258d0c308e6560400c80d9a3ac122bca496a6969ccc37550b6b91a7
Contents?: true
Size: 617 Bytes
Versions: 4
Compression:
Stored size: 617 Bytes
Contents
$LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "lib"))) begin require 'rubygems' gem 'rspec', '> 1.2.2' rescue LoadError end require 'spec' require 'spec/autorun' require 'stringio' class Object def expose_methods_for_testing cls = (Class === self) ? self : (class << self ; self; end) private_method_names = cls.private_instance_methods - Object.private_instance_methods cls.send(:public, *private_method_names) protected_method_names = cls.protected_instance_methods - Object.protected_instance_methods cls.send(:public, *protected_method_names) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bindata-1.1.0 | spec/spec_common.rb |
bindata-1.0.0 | spec/spec_common.rb |
bindata-0.11.1 | spec/spec_common.rb |
bindata-0.11.0 | spec/spec_common.rb |