Commit 036265ca by Prem Sichanugrist

Add test case to make sure we've already be able to clone nested hash. Close #410

parent 30c6dc56
......@@ -98,6 +98,19 @@ class AttachmentTest < Test::Unit::TestCase
end
end
end
context "with nested hash default" do
setup do
@nested_hash = {:thumb => {:first => "second" }}
Paperclip::Attachment.default_options[:styles] = @nested_hash
@dummy = Dummy.new
@attachment = @dummy.avatar
end
should "correctly clone the nested hash" do
assert_equal(@nested_hash, @attachment.instance_variable_get(:@styles))
end
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment