spec/jpeg_spec.rb in jpeg-0.2.2 vs spec/jpeg_spec.rb in jpeg-0.3.0
- old
+ new
@@ -10,9 +10,12 @@
context "valid jpeg" do
before { @jpeg = Jpeg.open(sample_file_path("sample.jpg")) }
its(:size) { should == [112, 112] }
its(:width) { should == 112 }
its(:height) { should == 112 }
+ its(:color_info) { should == :rgb }
+ its(:rgb?) { should be_true }
+ its(:gray?) { should be_false }
end
context "non-exists file" do
it {
lambda {
Jpeg.open(sample_file_path("nonexists.jpg"))