projects
/
selectricity-live
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
updated top the the new version of attachment_fu plugin to work out some
[selectricity-live]
/
vendor
/
plugins
/
attachment_fu
/
test
/
geometry_test.rb
diff --git
a/vendor/plugins/attachment_fu/test/geometry_test.rb
b/vendor/plugins/attachment_fu/test/geometry_test.rb
index ade4f489cf44fa6a0f4162a7de893b9af149959b..aebb41564eb3ae2049172a2ea3c642ff00809860 100644
(file)
--- a/
vendor/plugins/attachment_fu/test/geometry_test.rb
+++ b/
vendor/plugins/attachment_fu/test/geometry_test.rb
@@
-23,6
+23,13
@@
class GeometryTest < Test::Unit::TestCase
"100" => [100, 128]
end
+ def test_should_resize_no_height_with_x
+ assert_geometry 50, 64,
+ "50x" => [50, 64],
+ "60x" => [60, 77],
+ "100x" => [100, 128]
+ end
+
def test_should_resize_with_percent
assert_geometry 50, 64,
"50x50%" => [25, 32],
Benjamin Mako Hill
||
Want to submit a patch?