Sha256: 1b90ceed1d237206cb6c43a5eaa59096a3443fd723a7f7bfba1e2189f635fcd2
Contents?: true
Size: 810 Bytes
Versions: 1
Compression:
Stored size: 810 Bytes
Contents
require 'rubygems' require 'test/unit' require 'shoulda' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'djatoka' #require 'ruby-debug' class Test::Unit::TestCase def self.with_a_resolver(&block) context 'resolver setup' do setup do @resolver = Djatoka::Resolver.new('http://african.lanl.gov/adore-djatoka/resolver') @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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
djatoka-0.0.6 | test/helper.rb |