Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Added a test for a bug in interpolations
Browse files Browse the repository at this point in the history
  • Loading branch information
stretchkennedy authored and dgynn committed Sep 1, 2015
1 parent adba458 commit c77ca63
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/paperclip/interpolations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -250,4 +250,13 @@ def url(*args)
value = Paperclip::Interpolations.interpolate(":notreal/:id/:attachment", :attachment, :style)
assert_equal ":notreal/1234/attachments", value
end

it "handles question marks" do
Paperclip.interpolates :foo? do
"bar"
end
Paperclip::Interpolations.expects(:fool).never
value = Paperclip::Interpolations.interpolate(":fo/:foo?")
assert_equal ":fo/bar", value
end
end

0 comments on commit c77ca63

Please sign in to comment.