Permalink
Browse files

Update tests for 6.4.1-5 behavior

  • Loading branch information...
1 parent 9ceb41a commit c649a5818253548700b5643712f448cf2a245570 rmagick committed Jun 8, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/Image_attributes.rb
View
@@ -151,7 +151,7 @@ def test_colors
assert_equal(0, @img.colors)
img = @img.copy
img.class_type = Magick::PseudoClass
- assert_equal(260, img.colors)
+ assert_equal(40, img.colors)
assert_raise(NoMethodError) { img.colors = 2 }
end
@@ -161,7 +161,7 @@ def test_colorspace
assert_equal(Magick::RGBColorspace, @img.colorspace)
img = @img.copy
assert_nothing_raised { img.colorspace = Magick::GRAYColorspace }
- assert_equal(Magick::GRAYColorspace, img.colorspace)
+ assert_equal(Magick::RGBColorspace, img.colorspace)
assert_raise(TypeError) { @img.colorspace = 2 }
Magick::ColorspaceType.values.each do |cs|
assert_nothing_raised { img.colorspace = cs }

0 comments on commit c649a58

Please sign in to comment.