test/unit/bio/db/embl/test_embl_rel89.rb in bio-1.4.2 vs test/unit/bio/db/embl/test_embl_rel89.rb in bio-1.4.3
- old
+ new
@@ -127,16 +127,11 @@
assert_equal([], @obj.kw)
assert_equal([], @obj.keywords)
end
def test_os
-# assert_equal('', @obj.os)
- assert_raises(RuntimeError) { @obj.os }
- end
-
- def test_os_valid
- @obj.instance_eval { @data['OS'] = "Haplochromis sp. 'muzu rukwa'" }
- assert_equal("Haplochromis sp. 'muzu rukwa'", @obj.os)
+ assert_equal("Haplochromis sp. 'muzu, rukwa'", @obj.os[0]['os'])
+ assert_nil(@obj.os[0]['name'])
end
# Bio::EMBLDB::COMMON#oc
def test_oc
assert_equal('Eukaryota', @obj.oc.first)