From 7c7fe75618c5127246c5279682cc70a8ab0f1421 Mon Sep 17 00:00:00 2001 From: Alexey Vasiliev Date: Wed, 2 Jul 2014 23:46:50 +0300 Subject: [PATCH] update to rspec 3 --- .ruby-version | 2 +- .travis.yml | 2 +- spec/webp_ffi_spec.rb | 14 +++++++------- webp-ffi.gemspec | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.ruby-version b/.ruby-version index 7ec1d6d..eca07e4 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.1.0 +2.1.2 diff --git a/.travis.yml b/.travis.yml index a59e7e1..ad529eb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ rvm: - 1.9.2 - 1.9.3 - 2.0.0 - - 2.1.1 + - 2.1.2 - jruby-19mode - rbx-19mode - ruby-head diff --git a/spec/webp_ffi_spec.rb b/spec/webp_ffi_spec.rb index 9295304..04abbf3 100644 --- a/spec/webp_ffi_spec.rb +++ b/spec/webp_ffi_spec.rb @@ -79,21 +79,21 @@ it "#{image}.png image" do in_filename = File.expand_path(File.join(File.dirname(__FILE__), "factories/#{image}.png")) out_filename = File.expand_path(File.join(@out_dir, "#{image}.png.webp")) - expect(WebP.encode(in_filename, out_filename)).to be_true + expect(WebP.encode(in_filename, out_filename)).to be_truthy end end factories[:jpg].each do |image| it "#{image}.jpg image" do in_filename = File.expand_path(File.join(File.dirname(__FILE__), "factories/#{image}.jpg")) out_filename = File.expand_path(File.join(@out_dir, "#{image}.jpg.webp")) - expect(WebP.encode(in_filename, out_filename)).to be_true + expect(WebP.encode(in_filename, out_filename)).to be_truthy end end factories[:tiff].each do |image| it "#{image}.tif image" do in_filename = File.expand_path(File.join(File.dirname(__FILE__), "factories/#{image}.tif")) out_filename = File.expand_path(File.join(@out_dir, "#{image}.tif.webp")) - expect(WebP.encode(in_filename, out_filename)).to be_true + expect(WebP.encode(in_filename, out_filename)).to be_truthy end end factories[:webp].each do |image| @@ -128,7 +128,7 @@ it "#{image}.webp image" do in_filename = File.expand_path(File.join(File.dirname(__FILE__), "factories/#{image}.webp")) out_filename = File.expand_path(File.join(@out_dir, "#{image}.webp.png")) - expect(WebP.decode(in_filename, out_filename)).to be_true + expect(WebP.decode(in_filename, out_filename)).to be_truthy end end context "with output_format" do @@ -137,7 +137,7 @@ it "#{image}.webp image to #{output_format}" do in_filename = File.expand_path(File.join(File.dirname(__FILE__), "factories/#{image}.webp")) out_filename = File.expand_path(File.join(@out_dir, "#{image}.#{output_format}.png")) - expect(WebP.decode(in_filename, out_filename, output_format: output_format)).to be_true + expect(WebP.decode(in_filename, out_filename, output_format: output_format)).to be_truthy end end end @@ -147,12 +147,12 @@ it "#{image}.webp image to png and crop" do in_filename = File.expand_path(File.join(File.dirname(__FILE__), "factories/#{image}.webp")) out_filename = File.expand_path(File.join(@out_dir, "#{image}_crop.png")) - expect(WebP.decode(in_filename, out_filename, crop_w: 200, crop_h: 200)).to be_true + expect(WebP.decode(in_filename, out_filename, crop_w: 200, crop_h: 200)).to be_truthy end it "#{image}.webp image to png and scale" do in_filename = File.expand_path(File.join(File.dirname(__FILE__), "factories/#{image}.webp")) out_filename = File.expand_path(File.join(@out_dir, "#{image}_resize.png")) - expect(WebP.decode(in_filename, out_filename, resize_w: 200, resize_h: 200)).to be_true + expect(WebP.decode(in_filename, out_filename, resize_w: 200, resize_h: 200)).to be_truthy end end end diff --git a/webp-ffi.gemspec b/webp-ffi.gemspec index 4fd146f..ba81650 100644 --- a/webp-ffi.gemspec +++ b/webp-ffi.gemspec @@ -24,5 +24,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency "bundler", ">= 1.2" spec.add_development_dependency "rake" - spec.add_development_dependency "rspec", ">= 2.14.0" + spec.add_development_dependency "rspec", ">= 3" end