<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>w6500</author_name>
  <author_url>https://blog.hatena.ne.jp/w6500/</author_url>
  <blog_title>tanihiro.log</blog_title>
  <blog_url>https://tanihiro.hatenablog.com/</blog_url>
  <categories>
    <anon>ruby</anon>
    <anon>rspec</anon>
  </categories>
  <description>Rack::Test::UploadedFileを使用します。 http://rdoc.info/github/brynary/rack-test/master/Rack/Test/UploadedFile インスタンスを生成する際に、第一引数にファイルのパス、第二引数にcontent-typeを指定します。 Rack::Test::UploadedFile.new(&quot;/path/to/sample.jpg&quot;, &quot;image/jpeg&quot;) ファイルをmultipart/form-dataなどでリクエストするAPIなどのテストは、このUploadedFileのインスタンスを渡してあげれば、ファイ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftanihiro.hatenablog.com%2Fentry%2F2014%2F01%2F09%2F004022&quot; title=&quot;【ruby】Railsでファイルアップロードをテストする - tanihiro.log&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-01-09 00:40:22</published>
  <title>【ruby】Railsでファイルアップロードをテストする</title>
  <type>rich</type>
  <url>https://tanihiro.hatenablog.com/entry/2014/01/09/004022</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
