wrap import/test in a rescue block to make it optional
looks like this one was missed in commit: e16bc71590
Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
This commit is contained in:
parent
869fbb427f
commit
0e8614b702
|
@ -1,4 +1,6 @@
|
||||||
require File.dirname(__FILE__) + '/helper'
|
require File.dirname(__FILE__) + '/helper'
|
||||||
|
|
||||||
|
begin
|
||||||
require 'builder'
|
require 'builder'
|
||||||
|
|
||||||
class BuilderTest < Test::Unit::TestCase
|
class BuilderTest < Test::Unit::TestCase
|
||||||
|
@ -87,3 +89,7 @@ class BuilderTest < Test::Unit::TestCase
|
||||||
assert_raise(Errno::ENOENT) { get('/') }
|
assert_raise(Errno::ENOENT) { get('/') }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
rescue LoadError
|
||||||
|
warn "#{$!.to_s}: skipping less tests"
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in New Issue