test/test_metadata.rb in djatoka-0.2.0 vs test/test_metadata.rb in djatoka-0.2.1
- old
+ new
@@ -58,9 +58,19 @@
assert_equal '3372', Djatoka::Metadata.new(@resolver, @identifier).perform.height
set_testing_curb
end
end
+ context 'using net::https' do
+ should 'get metadata when using an https URI' do
+ Djatoka.use_curb=false
+ resolver = Djatoka::Resolver.new('https://scrc.lib.ncsu.edu/adore-djatoka/resolver')
+ metadata_obj = resolver.metadata('0004817')
+ metadata = metadata_obj.perform
+ assert_equal('10669', metadata.height)
+ end
+ end
+
context 'determining all the levels for a particular metadata response' do
setup do
@metadata_obj = @resolver.metadata(@identifier)
@metadata = @metadata_obj.perform
@levels = @metadata.all_levels