Skip to content

Commit

Permalink
more lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jcupitt committed Jan 23, 2022
1 parent 4e9fd0b commit 2445829
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/image_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def has_jpeg?

if has_jpeg?
it "can load a sample jpg image buffer" do
str = File.open(simg("wagon.jpg"), "rb").read
str = File.binread(simg("wagon.jpg"))
x = Vips::Image.new_from_buffer str, ""
expect(x.width).to eq(685)
expect(x.height).to eq(478)
Expand All @@ -231,7 +231,7 @@ def has_jpeg?

if has_jpeg?
it "can load a sample jpg image utf-8 buffer" do
str = File.open(simg("wagon.jpg"), "r").read
str = File.read(simg("wagon.jpg"))
x = Vips::Image.new_from_buffer str, ""
expect(x.width).to eq(685)
expect(x.height).to eq(478)
Expand All @@ -257,7 +257,7 @@ def has_jpeg?
if has_jpeg?
it "can set an ICC profile on a jpg image" do
x = Vips::Image.new_from_file simg("icc.jpg")
profile = File.open(simg("lcd.icc"), "rb").read
profile = File.binread(simg("lcd.icc"))
x = x.copy
x.set_value "icc-profile-data", profile
x.write_to_file(timg("x.jpg"))
Expand Down

0 comments on commit 2445829

Please sign in to comment.