PageRenderTime 23ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/amexsbs/railsapp/vendor/plugins/paperclip/test/processor_test.rb

https://bitbucket.org/AcireStudios/social-app-demo
Ruby | 10 lines | 9 code | 1 blank | 0 comment | 0 complexity | 91498303b015b1a104c9e53bf9c890cd MD5 | raw file
Possible License(s): GPL-2.0, MPL-2.0-no-copyleft-exception, MIT
  1. require 'test/helper'
  2. class ProcessorTest < Test::Unit::TestCase
  3. should "instantiate and call #make when sent #make to the class" do
  4. processor = mock
  5. processor.expects(:make).with()
  6. Paperclip::Processor.expects(:new).with(:one, :two, :three).returns(processor)
  7. Paperclip::Processor.make(:one, :two, :three)
  8. end
  9. end