Sha256: 4f0c0d83171c66465dd8d877d3d5c6a4f21378889eabf66076604f4a1d3696ed

Contents?: true

Size: 786 Bytes

Versions: 37

Compression:

Stored size: 786 Bytes

Contents

require "test/unit"
require "rubygems"
require 'autotest'
require "mocha"
require File.dirname(__FILE__) + '/../lib/autotest_notification' unless defined?(AutotestNotification)

class Test::Unit::TestCase
  def turn_methods_public(classe, method_name = nil)
    if method_name
      classe.class_eval do
        public method_name
      end
    else
      turn_all_methods_public classe
    end
  end
  def turn_all_methods_public(classe)
    classe.class_eval do
      private_instance_methods.each { |instance_method| public instance_method }
      private_methods.each { |method| public_class_method method } 
      protected_instance_methods.each { |instance_method| public instance_method }
      protected_methods.each { |method| public_class_method method } 
    end  
  end
end

Version data entries

37 entries across 37 versions & 9 rubygems

Version Path
blackwinter-autotest-notification-1.8.0 test/test_helper.rb
carlosbrando-autotest-notification-0.2.2 test/test_helper.rb
carlosbrando-autotest-notification-1.0.0 test/test_helper.rb
carlosbrando-autotest-notification-1.1.2 test/test_helper.rb
carlosbrando-autotest-notification-1.2.0 test/test_helper.rb
carlosbrando-autotest-notification-1.3.0 test/test_helper.rb
carlosbrando-autotest-notification-1.4.0 test/test_helper.rb
carlosbrando-autotest-notification-1.5.0 test/test_helper.rb
carlosbrando-autotest-notification-1.6.0 test/test_helper.rb
carlosbrando-autotest-notification-1.7.0 test/test_helper.rb
carlosbrando-autotest-notification-1.7.1 test/test_helper.rb
carlosbrando-autotest-notification-1.7.2 test/test_helper.rb
carlosbrando-autotest-notification-1.7.3 test/test_helper.rb
carlosbrando-autotest-notification-1.8.0 test/test_helper.rb
carlosbrando-autotest-notification-1.8.1 test/test_helper.rb
carlosbrando-autotest-notification-1.8.2 test/test_helper.rb
carlosbrando-autotest-notification-1.9.0 test/test_helper.rb
carlosbrando-autotest-notification-1.9.1 test/test_helper.rb
carlosbrando-autotest-notification-2.0.0 test/test_helper.rb
dcrec1-autotest-notification-1.7.3 test/test_helper.rb