Sha256: af912b57c9a130ef199e19ad0bd667bebfcd534fc855191ee9a1a5d68b526741
Contents?: true
Size: 599 Bytes
Versions: 4
Compression:
Stored size: 599 Bytes
Contents
require 'rubygems' gem 'test-unit', '~> 2' require 'test/unit' require 'mocha' class Class def publicize_instance_methods saved_private_instance_methods = self.private_instance_methods self.class_eval { public(*saved_private_instance_methods) } yield self.class_eval { private(*saved_private_instance_methods) } end def publicize_class_methods saved_private_class_methods = self.private_methods(false) self.class_eval { public_class_method(*saved_private_class_methods) } yield self.class_eval { private_class_method(*saved_private_class_methods) } end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
efax-1.4.2 | test/test_helper.rb |
efax-1.4.1 | test/test_helper.rb |
efax-1.4.0 | test/test_helper.rb |
efax-1.3.3 | test/test_helper.rb |