Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add test for #140

  • Loading branch information...
commit 1e977688fb8f9888c65203dbe08ee99691162e24 1 parent 7866be3
Tim Felgentreff timfel authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/test/github140.rb
12 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
Please sign in to comment.
Something went wrong with that request. Please try again.