push
travis-ci
0 of 1 new or added line in 1 file covered. (0.0%)
4246 existing lines in 332 files now uncovered.19161 of 32822 relevant lines covered (58.38%)
96.89 hits per line
1 |
module Paperclip |
2✔ |
2 |
class Rotator < Thumbnail |
2✔ |
3 |
def initialize(file, options = {}, attachment = nil) |
2✔ |
4 |
options[:auto_orient] = false |
374✔ |
5 |
super
|
374✔ |
6 |
end
|
|
7 |
|
|
8 |
def transformation_command |
2✔ |
9 |
if rotate_command
|
374✔ |
UNCOV
10
|
"#{rotate_command} #{super.join(' ')}"
|
× |
11 |
else
|
|
12 |
super
|
374✔ |
13 |
end
|
|
14 |
end
|
|
15 |
|
|
16 |
def rotate_command |
2✔ |
17 |
target = @attachment.instance
|
374✔ |
18 |
if target.rotate.present?
|
374✔ |
UNCOV
19
|
" -rotate #{target.rotate}"
|
× |
20 |
end
|
|
21 |
end
|
|
22 |
end
|
|
23 |
end
|