|
40 | 40 |
|
41 | 41 | it "should create the file" do
|
42 | 42 | @processor.save(@pdf, 0, @path, {})
|
43 |
| - File.exist?(@path).should be_truthy |
| 43 | + File.exist?(@path).should be_true |
44 | 44 | end
|
45 | 45 |
|
46 | 46 | it "should use default width of 1024" do
|
|
77 | 77 | Grim::ImageMagickProcessor.new.save(@pdf, 0, @path, {:quality => 90})
|
78 | 78 | higher_size = File.size(@path)
|
79 | 79 |
|
80 |
| - (lower_size < higher_size).should be_truthy |
| 80 | + (lower_size < higher_size).should be_true |
81 | 81 | end
|
82 | 82 | end
|
83 | 83 |
|
|
91 | 91 | lower_time = Benchmark.realtime { Grim::ImageMagickProcessor.new.save(@pdf, 0, @path, {:density => 72}) }
|
92 | 92 | higher_time = Benchmark.realtime { Grim::ImageMagickProcessor.new.save(@pdf, 0, @path, {:density => 300}) }
|
93 | 93 |
|
94 |
| - (lower_time < higher_time).should be_truthy |
| 94 | + (lower_time < higher_time).should be_true |
95 | 95 | end
|
96 | 96 | end
|
97 | 97 |
|
|
106 | 106 | Grim::ImageMagickProcessor.new.save(@pdf, 0, @path1, {:alpha => 'Set'})
|
107 | 107 | Grim::ImageMagickProcessor.new.save(@pdf, 0, @path2, {:alpha => 'Remove'})
|
108 | 108 |
|
109 |
| - `convert #{@path1} -verbose info:`.include?("alpha: 8-bit").should be_truthy |
110 |
| - `convert #{@path2} -verbose info:`.include?("alpha: 1-bit").should be_truthy |
| 109 | + `convert #{@path1} -verbose info:`.include?("alpha: 8-bit").should be_true |
| 110 | + `convert #{@path2} -verbose info:`.include?("alpha: 1-bit").should be_true |
111 | 111 | end
|
112 | 112 | end
|
113 | 113 |
|
|
0 commit comments