Permalink
Browse files

fix test name generation for tilt master

  • Loading branch information...
1 parent 3f23182 commit 8d6b69c3152b3beecbcad6a6a6da3e6652308743 @rkh rkh committed Dec 12, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/markdown_test.rb
@@ -74,7 +74,8 @@ def setup
t.new { "" }
klass = Class.new(Test::Unit::TestCase) { define_method(:engine) { t }}
klass.class_eval(&MarkdownTest)
- Object.const_set t.name[/[^:]+(?=Template$)/] << "Test", klass
+ name = t.name[/[^:]+$/].sub(/Template$/, '') << "Test"
+ Object.const_set name, klass
rescue LoadError
warn "#{$!}: skipping markdown tests with #{t}"
end

0 comments on commit 8d6b69c

Please sign in to comment.