Permalink
Browse files

Removed tests regarding spawn

  • Loading branch information...
1 parent 9dd008d commit 20bf50d0a89bb8f2780e548ab6ea2fa4b775f88e @jyurek jyurek committed Feb 8, 2009
Showing with 0 additions and 36 deletions.
  1. +0 −36 test/attachment_test.rb
View
36 test/attachment_test.rb
@@ -235,42 +235,6 @@ class Paperclip::Test < Paperclip::Processor; end
end
end
- context "When spawn is not defined on the instance" do
- setup do
- rebuild_model :styles => {:foo => true}
- @dummy = Dummy.new
- @file = StringIO.new("12345")
- end
-
- should "not call spawn on the instance when assigned a file" do
- @dummy.expects(:spawn).times(0)
- @dummy.avatar.expects(:post_process_styles)
- # This is pretty ugly, but mocha expectations make the object
- # respond_to? things it wouldn't have. Gotta get around it.
- class << @dummy
- def respond_to_with_spawn?(method)
- (method == :spawn) ? false : respond_to_without_spawn?(method)
- end
- alias_method_chain :respond_to?, :spawn
- end
- @dummy.avatar = @file
- end
- end
-
- # context "When spawn is defined on the instance" do
- # setup do
- # Dummy.any_instance.stubs(:spawn)
- # rebuild_model :styles => {:foo => true}
- # @dummy = Dummy.new
- # @file = StringIO.new("12345")
- # end
-
- # should "not call spawn on the instance when assigned a file" do
- # @dummy.expects(:spawn)
- # @dummy.avatar = @file
- # end
- # end
-
context "An attachment with no processors defined" do
setup do
rebuild_model :processors => [], :styles => {:something => 1}

0 comments on commit 20bf50d

Please sign in to comment.