Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
4b98e8f1
Commit
4b98e8f1
authored
Aug 07, 2008
by
Barry Hess
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test to verify PaperclipError raised when bad convert options are provided for the thumbnail.
parent
39bc32c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
test/thumbnail_test.rb
+12
-0
No files found.
test/thumbnail_test.rb
View file @
4b98e8f1
...
...
@@ -128,6 +128,18 @@ class ThumbnailTest < Test::Unit::TestCase
dst
=
@thumb
.
make
assert_match
/100x50/
,
`identify
#{
dst
.
path
}
`
end
context
"redefined to have bad convert_options setting"
do
setup
do
@thumb
=
Paperclip
::
Thumbnail
.
new
(
@file
,
"100x50#"
,
format
=
nil
,
whiny_thumbnails
=
true
,
convert_options
=
"-this-aint-no-option"
)
end
should
"error when trying to create the thumbnail"
do
assert_raises
(
Paperclip
::
PaperclipError
)
do
@thumb
.
make
end
end
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment