test/helper.rb in djatoka-0.0.5 vs test/helper.rb in djatoka-0.0.6
- old
+ new
@@ -3,11 +3,11 @@
require 'shoulda'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'djatoka'
-require 'ruby-debug'
+#require 'ruby-debug'
class Test::Unit::TestCase
def self.with_a_resolver(&block)
context 'resolver setup' do
setup do
@@ -15,9 +15,18 @@
@identifier = 'info:lanl-repo/ds/5aa182c2-c092-4596-af6e-e95d2e263de3'
@url_encoded_identifier = 'info%3Alanl-repo%2Fds%2F5aa182c2-c092-4596-af6e-e95d2e263de3'
end
merge_block(&block) if block_given?
+ end
+ end
+
+ def set_testing_curb
+ begin
+ require 'curb'
+ Djatoka.use_curb = true
+ rescue LoadError
+ Djatoka.use_curb = false
end
end
end