spec/object_file_spec.rb in assembly-objectfile-1.5.7 vs spec/object_file_spec.rb in assembly-objectfile-1.6.2

- old
+ new

@@ -1,5 +1,7 @@ +require 'spec_helper' + describe Assembly::ObjectFile do it "should not run if no input file is passed in" do @ai=Assembly::ObjectFile.new('') lambda{@ai.filesize}.should raise_error @@ -107,10 +109,10 @@ it "should tell us if an input file is not an image" do non_image_file=File.join(Assembly::PATH_TO_GEM,'spec/object_file_spec.rb') File.exists?(non_image_file).should be true @ai = Assembly::ObjectFile.new(non_image_file) @ai.image?.should == false - @ai.object_type.should == :text + @ai.object_type.should_not == :image @ai.valid_image?.should == false non_image_file=File.join(Assembly::PATH_TO_GEM,'README.rdoc') File.exists?(non_image_file).should be true @ai = Assembly::ObjectFile.new(non_image_file) \ No newline at end of file