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
94443873
Commit
94443873
authored
Nov 16, 2012
by
Jon Yurek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The 5k.png is 434x66 not 434x73
parent
dda3166a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test/geometry_test.rb
+2
-2
No files found.
test/geometry_test.rb
View file @
94443873
...
...
@@ -129,14 +129,14 @@ class GeometryTest < Test::Unit::TestCase
file
=
fixture_file
(
"5k.png"
)
file
=
File
.
new
(
file
,
'rb'
)
assert_nothing_raised
{
@geo
=
Paperclip
::
Geometry
.
from_file
(
file
)
}
assert_equal
73
,
@geo
.
height
assert_equal
66
,
@geo
.
height
assert_equal
434
,
@geo
.
width
end
should
"be generated from a file path"
do
file
=
fixture_file
(
"5k.png"
)
assert_nothing_raised
{
@geo
=
Paperclip
::
Geometry
.
from_file
(
file
)
}
assert_equal
73
,
@geo
.
height
assert_equal
66
,
@geo
.
height
assert_equal
434
,
@geo
.
width
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