Skip to content

Commit 8c43d5f

Browse files
committed
Revert "Since rspec 3.0 be_true is renamed to be_truthy (works the same)"
This reverts commit 3ad5d86.
1 parent 3ad5d86 commit 8c43d5f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

spec/lib/grim/image_magick_processor_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
it "should create the file" do
4242
@processor.save(@pdf, 0, @path, {})
43-
File.exist?(@path).should be_truthy
43+
File.exist?(@path).should be_true
4444
end
4545

4646
it "should use default width of 1024" do
@@ -77,7 +77,7 @@
7777
Grim::ImageMagickProcessor.new.save(@pdf, 0, @path, {:quality => 90})
7878
higher_size = File.size(@path)
7979

80-
(lower_size < higher_size).should be_truthy
80+
(lower_size < higher_size).should be_true
8181
end
8282
end
8383

@@ -91,7 +91,7 @@
9191
lower_time = Benchmark.realtime { Grim::ImageMagickProcessor.new.save(@pdf, 0, @path, {:density => 72}) }
9292
higher_time = Benchmark.realtime { Grim::ImageMagickProcessor.new.save(@pdf, 0, @path, {:density => 300}) }
9393

94-
(lower_time < higher_time).should be_truthy
94+
(lower_time < higher_time).should be_true
9595
end
9696
end
9797

@@ -106,8 +106,8 @@
106106
Grim::ImageMagickProcessor.new.save(@pdf, 0, @path1, {:alpha => 'Set'})
107107
Grim::ImageMagickProcessor.new.save(@pdf, 0, @path2, {:alpha => 'Remove'})
108108

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
111111
end
112112
end
113113

spec/lib/grim_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
end
88

99
it "should have a VERSION constant" do
10-
Grim.const_defined?('VERSION').should be_truthy
10+
Grim.const_defined?('VERSION').should be_true
1111
end
1212

1313
it "should have WIDTH constant set to 1024" do

0 commit comments

Comments
 (0)