Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix test name generation for tilt master

  • Loading branch information...
commit 8d6b69c3152b3beecbcad6a6a6da3e6652308743 1 parent 3f23182
@rkh rkh authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  test/markdown_test.rb
View
3  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
Please sign in to comment.
Something went wrong with that request. Please try again.