Created
April 15, 2011 23:10
-
-
Save NeMO84/922630 to your computer and use it in GitHub Desktop.
Test to see that expected behaviour occurs for other developers.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Namespace test. | |
module A | |
class B | |
class C | |
end | |
end | |
end | |
module A | |
class D | |
end | |
class D::E | |
def initialize | |
C.new | |
end | |
end | |
end | |
puts "Should pass" if A::B.new and A::B::C.new | |
puts "Should pass" if A::D.new | |
puts "Should not have passed!" if A::D::E.new | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment