Commit edffcabc by Andres Arellano Committed by Jon Yurek

Add a test for expiring_url within filesystem storage

parent 27c0eee4
...@@ -953,6 +953,10 @@ class AttachmentTest < Test::Unit::TestCase ...@@ -953,6 +953,10 @@ class AttachmentTest < Test::Unit::TestCase
assert_match @attachment.to_s, @attachment.url assert_match @attachment.to_s, @attachment.url
assert_match @attachment.to_s(:small), @attachment.url(:small) assert_match @attachment.to_s(:small), @attachment.url(:small)
end end
should "have matching expiring_url and url methods when using the filesystem storage" do
assert_match @attachment.expiring_url, @attachment.url
end
end end
context "An attachment" do context "An attachment" do
......
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