spec/object_file_spec.rb in assembly-objectfile-1.5.5 vs spec/object_file_spec.rb in assembly-objectfile-1.5.6
- old
+ new
@@ -51,17 +51,17 @@
test_file=File.join(TEST_INPUT_DIR,'oo000oo0001_05_001.tif')
@ai = Assembly::ObjectFile.new(test_file)
@ai.dpg_folder.should == "05"
end
- it "should tell us that a jp2 file is not jp2able" do
+ it "should tell us that a jp2 file is not jp2able but does have a color profile" do
File.exists?(TEST_JP2_INPUT_FILE).should be true
@ai = Assembly::ObjectFile.new(TEST_JP2_INPUT_FILE)
@ai.image?.should == true
@ai.object_type.should == :image
@ai.valid_image?.should == true
@ai.jp2able?.should == false
- @ai.has_color_profile?.should == false
+ @ai.has_color_profile?.should == true
end
it "should tell us that a tiff file is jp2able and has a color profile" do
File.exists?(TEST_RES1_TIF1).should be true
@ai = Assembly::ObjectFile.new(TEST_RES1_TIF1)
\ No newline at end of file