test/mediainfo_test.rb in mediainfo-0.7.1 vs test/mediainfo_test.rb in mediainfo-0.7.2
- old
+ new
@@ -81,11 +81,24 @@
:image_resolution,
:image_format,
:image_width,
- :image_height
+ :image_height,
+
+ ### MENU
+
+ :menu_stream_id,
+ :menu_tagged_date,
+ :menu_encoded_date,
+ :menu_delay,
+
+ ### TEXT
+ :text_codec_id,
+ :text_codec_info,
+ :text_format,
+ :text_stream_id
]
Mediainfo.supported_attributes.each do |attribute|
test "supports #{attribute} attribute" do
assert supported_attributes.include?(attribute),
@@ -128,7 +141,12 @@
end
test "cannot be initialized with version < 0.7.25" do
Mediainfo.any_instance.stubs(:mediainfo_version).returns("0.7.10")
assert_raises(Mediainfo::IncompatibleVersionError) { Mediainfo.new }
+ end
+
+ test "fails obviously when CLI is not installed" do
+ Mediainfo.any_instance.stubs(:mediainfo_version).returns(nil)
+ assert_raises(Mediainfo::UnknownVersionError) { Mediainfo.new }
end
end