Permalink
Browse files

Fix typo in integration_test.rb. 'thumbnail_convert_options' should r…

…ead 'convert_options'.
  • Loading branch information...
bjhess committed Oct 10, 2008
1 parent 7dbdb4c commit 6696a2b93feb1c00d0672c9c9992afc5e5aa2d20
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/integration_test.rb
View
@@ -91,7 +91,7 @@ class IntegrationTest < Test::Unit::TestCase
end
end
- context "A model with no thumbnail_convert_options setting" do
+ context "A model with no convert_options setting" do
setup do
rebuild_model :styles => { :large => "300x300>",
:medium => "100x100",
@@ -103,22 +103,22 @@ class IntegrationTest < Test::Unit::TestCase
end
should "have its definition return nil when asked about convert_options" do
- assert ! Dummy.attachment_definitions[:avatar][:thumbnail_convert_options]
+ assert ! Dummy.attachment_definitions[:avatar][:convert_options]
end
context "redefined to have convert_options setting" do
setup do
rebuild_model :styles => { :large => "300x300>",
:medium => "100x100",
:thumb => ["32x32#", :gif] },
- :thumbnail_convert_options => "-strip -depth 8",
+ :convert_options => "-strip -depth 8",
:default_style => :medium,
:url => "/:attachment/:class/:style/:id/:basename.:extension",
:path => ":rails_root/tmp/:attachment/:class/:style/:id/:basename.:extension"
end
should "have its definition return convert_options value when asked about convert_options" do
- assert_equal "-strip -depth 8", Dummy.attachment_definitions[:avatar][:thumbnail_convert_options]
+ assert_equal "-strip -depth 8", Dummy.attachment_definitions[:avatar][:convert_options]
end
end
end

0 comments on commit 6696a2b

Please sign in to comment.