Sha256: 32927c69faebe6b29f9eafc04703ef63e6afc162ad4e7910a8634ce97cb5cc10

Contents?: true

Size: 329 Bytes

Versions: 3

Compression:

Stored size: 329 Bytes

Contents

require 'spec_helper.rb'

describe "Uploads controller" do
  it "should create an upload" do
    post '/s3_multipart/uploads', {object_name: "example_object", content_type: "video/x-ms-wmv"}
    parsed_body = JSON.parse(response.body)
    parsed_body.should_not eq({"error"=>"There was an error initiating the upload"})
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
s3_multipart-0.0.4 spec/integration/uploads_controller_spec.rb
s3_multipart-0.0.3 spec/integration/uploads_controller_spec.rb
s3_multipart-0.0.2 spec/integration/uploads_controller_spec.rb