1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

unloadable library might raise NameError in tilt master

This commit is contained in:
Konstantin Haase 2013-01-26 10:12:16 +01:00
parent 590a90b71d
commit a099dffc35

View file

@ -76,7 +76,7 @@ Tilt.mappings['md'].each do |t|
klass.class_eval(&MarkdownTest)
name = t.name[/[^:]+$/].sub(/Template$/, '') << "Test"
Object.const_set name, klass
rescue LoadError
rescue LoadError, NameError
warn "#{$!}: skipping markdown tests with #{t}"
end
end