Skip to content

Instantly share code, notes, and snippets.

@NeMO84
Created April 15, 2011 23:10
Show Gist options
  • Save NeMO84/922630 to your computer and use it in GitHub Desktop.
Save NeMO84/922630 to your computer and use it in GitHub Desktop.
Test to see that expected behaviour occurs for other developers.
# 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