Sha256: 3cdbc2db2cae794c737d9447e87be558f6a24cd0d56f333648c54c8c4a21f2c5

Contents?: true

Size: 419 Bytes

Versions: 4

Compression:

Stored size: 419 Bytes

Contents

covers 'facets/module/all_instance_methods'

tests Module do

  unit :all_instance_methods do
    c = Class.new do
      def x; "x"; end
      private
      def y; "y"; end
      protected
      def z; "z"; end
    end

    list = c.all_instance_methods(false)

    list.map!{ |m| m.to_sym } # b/c of diff in 1.8 vs 1.9

    list.assert.include?(:x)
    list.assert.include?(:y)
    list.assert.include?(:z)
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facets-2.9.1 test/core/module/test_all_instance_methods.rb
facets-2.9.0 test/core/module/test_all_instance_methods.rb
facets-2.9.0.pre.2 test/core/module/test_all_instance_methods.rb
facets-2.9.0.pre.1 test/core/module/test_all_instance_methods.rb