Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Remove old Tempfile tests from Thumbnail spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Faris committed Nov 11, 2016
1 parent ce91972 commit af685ad
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions spec/paperclip/thumbnail_spec.rb
@@ -1,38 +1,6 @@
require 'spec_helper'

describe Paperclip::Thumbnail do
context "A Paperclip Tempfile" do
before do
@tempfile = Paperclip::Tempfile.new(["file", ".jpg"])
end

after { @tempfile.close }

it "has its path contain a real extension" do
assert_equal ".jpg", File.extname(@tempfile.path)
end

it "is a real Tempfile" do
assert @tempfile.is_a?(::Tempfile)
end
end

context "Another Paperclip Tempfile" do
before do
@tempfile = Paperclip::Tempfile.new("file")
end

after { @tempfile.close }

it "does not have an extension if not given one" do
assert_equal "", File.extname(@tempfile.path)
end

it "is a real Tempfile" do
assert @tempfile.is_a?(::Tempfile)
end
end

context "An image" do
before do
@file = File.new(fixture_file("5k.png"), 'rb')
Expand Down

0 comments on commit af685ad

Please sign in to comment.