Skip to content

Commit

Permalink
update to rspec 3
Browse files Browse the repository at this point in the history
  • Loading branch information
le0pard committed Jul 2, 2014
1 parent 5876ddd commit 7c7fe75
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.0
2.1.2
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions spec/webp_ffi_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion webp-ffi.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7c7fe75

Please sign in to comment.