test/ft_29_httprb.rb in openwferu-0.9.6 vs test/ft_29_httprb.rb in openwferu-0.9.7
- old
+ new
@@ -18,12 +18,14 @@
include FlowTestBase
#def teardown
#end
- #def setup
- #end
+ def setup
+ super
+ @engine.ac[:remote_definitions_allowed] = true
+ end
DEFHOST = "http://openwferu.rubyforge.org/defs"
#
# TEST 0
@@ -87,9 +89,36 @@
"""-1
0
1
2
3""")
+ end
+
+
+ #
+ # TEST 3
+
+ #def xxxx_httprb_3
+ def test_httprb_3
+
+ @engine.ac.delete(:remote_definitions_allowed)
+ #
+ # relocking
+
+ li = OpenWFE::LaunchItem.new
+ li.wfdurl = "#{DEFHOST}/testdef.rb"
+
+ e = nil
+
+ begin
+ dotest(li, "")
+ rescue Exception => e
+ end
+
+ #puts e
+
+ assert_not_nil e
+ assert_equal e.to_s, "loading remote definitions is not allowed"
end
end