Sha256: 2b481281066b8ffe833b823d6966cf278edc98837cd28b72bcf4a490dec48dd0
Contents?: true
Size: 407 Bytes
Versions: 2
Compression:
Stored size: 407 Bytes
Contents
require 'spec_helper.rb' require "digest/sha1" describe "Uploads controller" do it "should create an upload" do post '/s3_multipart/uploads', {object_name: "example_object.wmv", content_type: "video/x-ms-wmv", uploader: Digest::SHA1.hexdigest("VideoUploader")} parsed_body = JSON.parse(response.body) parsed_body.should_not eq({"error"=>"There was an error initiating the upload"}) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
s3_multipart-0.0.9 | spec/integration/uploads_controller_spec.rb |
s3_multipart-0.0.8 | spec/integration/uploads_controller_spec.rb |