Skip to content

Commit

Permalink
Add image case into own group
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaier committed Dec 30, 2012
1 parent 0f2621d commit 6d785d1
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions spec/image_sorcery_examples_spec.rb
Expand Up @@ -30,15 +30,18 @@
image.manipulate!(:format => "png")
end

it "should delete original file" do
File.exists?("./spec/fixtures/dog-2.jpeg").should be_false
end
describe "with image" do
it "should delete original file" do
File.exists?("./spec/fixtures/dog-2.jpeg").should be_false
end

it "should create file with new extension" do
File.exists?("./spec/fixtures/dog-2.png").should be_true
end

it "should create file with new extension" do
File.exists?("./spec/fixtures/dog-2.png").should be_true
its(:identify) { should include "PNG 160x120" }
end

its(:identify) { should include "PNG 160x120" }
end
end

Expand Down

0 comments on commit 6d785d1

Please sign in to comment.