       message: "Field `getOrCreateFile': Not logged in"}])
     assert_data(query, %{"getOrCreateFile" => %{
       "clientMutationId" => "123",
-      "file" => %{"filepath" => "testfile3.txt"}}}, client)
+      "file" => file_info,
+       }}, client)
   end
 end

  "input": {
    "clientMutationId": "123",
    "source": {"name": "test source"},
    "file": {
      "filepath": "testfile3.txt",
        "size": 12,
        "mtime": "2013-06-05T06:40:25.000Z",
      "atime": "2013-06-05T06:40:25.000Z",
      "ctime": "2013-06-05T06:40:25.000Z",
      "birthtime": "2013-06-05T06:40:25.000Z",
      "mode": 100644
    }
  }
}
}


  test "creating a file", context do
    client = context[:client]
    file_info = %{
        "filepath" => "testfile3.txt",
        "atime" => "2013-06-05T06:40:25.000Z",
        "birthtime" => "2013-06-05T06:40:25.000Z",
        "ctime" => "2013-06-05T06:40:25.000Z",
        "mode" => 100644,
        "mtime" => "2013-06-05T06:40:25.000Z",
        "size" => 12
       }
    file_info_json = Poison.encode!(file_info)
    query = """
{"query": "mutation getOrCreateFile($input: GetOrCreateFileInput!) {
  getOrCreateFile(input: $input) {
            clientMutationId
            file {
              filepath
              size
              atime
              ctime
              mtime
              birthtime
              mode
            }
        }
    }",
