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:
parent
590a90b71d
commit
a099dffc35
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ Tilt.mappings['md'].each do |t|
|
||||||
klass.class_eval(&MarkdownTest)
|
klass.class_eval(&MarkdownTest)
|
||||||
name = t.name[/[^:]+$/].sub(/Template$/, '') << "Test"
|
name = t.name[/[^:]+$/].sub(/Template$/, '') << "Test"
|
||||||
Object.const_set name, klass
|
Object.const_set name, klass
|
||||||
rescue LoadError
|
rescue LoadError, NameError
|
||||||
warn "#{$!}: skipping markdown tests with #{t}"
|
warn "#{$!}: skipping markdown tests with #{t}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue