Sha256: 52ea5b270a09fca86d073d408d7e2875ab8bd97f93ef83667dd14cb4f6bcbcaa

Contents?: true

Size: 374 Bytes

Versions: 9

Compression:

Stored size: 374 Bytes

Contents

require 'facets/module/conflict'
require 'test/unit'

class Test_Module_Conflict < Test::Unit::TestCase

  class X
    def q; "qx"; end
  end

  class Y
    def q; "qy"; end
  end

  if RUBY_VERSION < '1.9'
    def test_conflict?
      assert_equal( ["q"], X.conflict?(Y) )
    end
  else
    def test_conflict?
      assert_equal( [:q], X.conflict?(Y) )
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/module/test_conflict.rb
facets-2.8.3 test/core/module/test_conflict.rb
facets-2.8.2 test/core/module/test_conflict.rb
facets-2.8.1 test/core/module/test_conflict.rb
facets-2.8.0 test/core/module/test_conflict.rb
facets-2.7.0 test/core/module/test_conflict.rb
facets-2.6.0 test/core/module/test_conflict.rb
facets-2.5.1 test/core/module/test_conflict.rb
facets-2.5.2 test/core/module/test_conflict.rb