Sha256: c980fa1d859dab6b11104665e3b88166ad601e3bdc888b6879eec704e0de2540

Contents?: true

Size: 731 Bytes

Versions: 3

Compression:

Stored size: 731 Bytes

Contents

require 'test/unit'
require 'facet/crosscase'


class TC_CrossCase < Test::Unit::TestCase

  # Test to be sure the module loaded
  def test_00_module
    assert_instance_of Module, CrossCase, "CrossCase module didn't load"
  end

  # Test pre-include
  def test_10_preinclude
    rval = obj = testClass = nil
                
    assert_nothing_raised {
      testClass = Class::new( Object ) {
        include CrossCase
        def underbarred_method; "under_barred"; end
        def camelCasedMethod; "camelCased"; end
      }
    }

    obj = testClass::new
    assert_respond_to obj, :underbarredMethod, "alias for underbarred_method"
    assert_respond_to obj, :camel_cased_method, "alias for camelCasedMethod"
  end

end



Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
facets-0.7.0 test/tc_crosscase.rb
facets-0.7.1 test/tc_crosscase.rb
facets-0.7.2 test/tc_crosscase.rb