Sha256: d7c145e3da345e17d2e1bde0f6644e566a4ea7bbc66544e1382c83380b81e0ce
Contents?: true
Size: 684 Bytes
Versions: 3
Compression:
Stored size: 684 Bytes
Contents
require File.join(File.dirname(__FILE__), 'CONFIG.rb') require 'test/unit' require 'ostruct' require 'nitro/helper' class Base include Nitro::Helpers end module MyHelper def hello_world return 5 end end module AnotherHelper def bye_world return 0 end end class MyBase < Base helper :my helper AnotherHelper end class TC_Helper < Test::Unit::TestCase # :nodoc: all def test_all assert !MyBase.public_instance_methods.include?('hello_world') assert MyBase.private_instance_methods.include?('hello_world') assert !MyBase.public_instance_methods.include?('bye_world') assert MyBase.private_instance_methods.include?('bye_world') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.30.0 | test/nitro/tc_helper.rb |
nitro-0.31.0 | test/nitro/tc_helper.rb |
nitro-0.40.0 | test/nitro/tc_helper.rb |