Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove image specific stuff from grid-fs specs

  • Loading branch information...
commit 1bd92e2b28959b15df4b7b016d33b318df1a2689 1 parent cf822cb
Corin Langosch authored
Showing with 2 additions and 32 deletions.
  1. +2 −32 spec/storage/grid_fs_spec.rb
View
34 spec/storage/grid_fs_spec.rb
@@ -100,12 +100,9 @@
describe "#recreate_versions!" do
before do
@uploader_class = Class.new(CarrierWave::Uploader::Base)
- @uploader_class.class_eval{
- include CarrierWave::MiniMagick
+ @uploader_class.class_eval do
storage :grid_fs
-
- process :resize_to_fit => [10, 10]
- }
+ end
@versioned = @uploader_class.new
@versioned.stub!(:grid_fs_connection).and_return(@database)
@@ -125,33 +122,6 @@
@versioned.should be_present
end
end
-
-
- describe "resize_to_fill" do
- before do
- @uploader_class = Class.new(CarrierWave::Uploader::Base)
- @uploader_class.class_eval{
- include CarrierWave::MiniMagick
- storage :grid_fs
- }
-
- @versioned = @uploader_class.new
- @versioned.stub!(:grid_fs_connection).and_return(@database)
-
- @versioned.store! File.open(file_path('portrait.jpg'))
- end
-
- after do
- FileUtils.rm_rf(public_path)
- end
-
- it "resizes the file with out error" do
- lambda {
- @versioned.resize_to_fill(200, 200)
- }.should_not raise_error
-
- end
- end
end
context "when setting a connection manually" do
Please sign in to comment.
Something went wrong with that request. Please try again.