spec/webmock_helpers.rb in softcover-0.9.10 vs spec/webmock_helpers.rb in softcover-0.9.11

- old
+ new

@@ -120,16 +120,16 @@ stub_request(:post, /s3\.amazonaws\.com/). with(:body => /.*/). to_return(:status => 200, :body => "", :headers => {}) end - def stub_screencasts_upload(book) + def stub_media_upload(book) stub_s3_post stub_create_book(book) files = book.find_screencasts stub_request(:post, - "#{api_base_url}/books/#{book.id}/screencasts"). + "#{api_base_url}/books/#{book.id}/media"). with(:body => {files: files }.to_json, :headers => headers). to_return(:status => 200, :body => { upload_params: files.map { |file| { \ No newline at end of file