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
eb4e88be
Commit
eb4e88be
authored
Mar 08, 2013
by
Dan Collis-Puro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify tests for frame dimensions
parent
6721b469
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
test/helper.rb
+4
-5
No files found.
test/helper.rb
View file @
eb4e88be
...
...
@@ -199,9 +199,9 @@ def assert_file_not_exists(path)
end
def
assert_frame_dimensions
(
range
,
frames
)
frames
.
each_with_index
do
|
frame
,
id
x
|
frame
.
split
(
'x'
).
each_with_index
do
|
dim
,
idx
|
assert
range
.
include?
(
dim
.
to_i
),
"Frame
#{
idx
}
[
#{
idx
}
] should have been within
#{
range
.
inspect
}
, but was
#{
dim
}
"
frames
.
each_with_index
do
|
frame
,
frame_inde
x
|
frame
.
split
(
'x'
).
each_with_index
do
|
dim
ension
,
dimension_index
|
assert
range
.
include?
(
dim
ension
.
to_i
),
"Frame
#{
frame_index
}
[
#{
dimension_index
}
] should have been within
#{
range
.
inspect
}
, but was
#{
dimension
}
"
end
end
end
\ No newline at end of file
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