Permalink
Browse files

add test for #140

  • Loading branch information...
1 parent 7866be3 commit 1e977688fb8f9888c65203dbe08ee99691162e24 @timfel timfel committed Aug 30, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/test/github140.rb
View
@@ -0,0 +1,12 @@
+# https://github.com/MagLev/maglev/issues/140
+#
+# defined? ::A::B doesn't work if A is not defined
+#
+# doing this on MagLev tries to resolve up to the last part of a
+# Module definition and checks only if that is defined. It should
+# instead check for each part. This causes a problem when trying to
+# use Tilt with Haml, as Tilt checks defined? ::Haml::Engine before
+# loading Haml
+
+defined?(::A::B)
+# should not raise

0 comments on commit 1e97768

Please sign in to comment.