I'm trying to test controller that expects a file upload using the phoenix framework. I followed the guide at the phoenix guides (http://www.phoenixframework.org/docs/file-uploads) and it works in the browser, but i'm having trouble writing a test for it. Here's what i did: test "POST photo" do { :ok, raw_file } = File.read "1528_27.jpg" conn() |> post("/api/v1/originals", %{ :image => raw_file })
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く