Sha256: 55d1e30a3bf7d214e79c08467d8ac5c800453a797a050cdf00bdc9abb093e860
Contents?: true
Size: 657 Bytes
Versions: 2
Compression:
Stored size: 657 Bytes
Contents
require 'spec_helper.rb' describe "An upload controller" do before(:all) do class Uploader extend S3Multipart::Uploader::Core end end it "should set up callbacks" do Uploader.class_eval do on_begin do |upload| "Upload has begun" end on_complete do |upload| "Upload has completed" end end Uploader.on_begin_callback.call.should eql("Upload has begun") Uploader.on_complete_callback.call.should eql("Upload has completed") end it "should attach a model to the uploader" do Uploader.attach :video S3Multipart::Upload.new.respond_to?(:video).should be_true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
s3_multipart-0.0.7 | spec/unit/upload_controller_spec.rb |
s3_multipart-0.0.6 | spec/unit/upload_controller_spec.rb |