I am trying to write a test that simulates some return values from Dropbox's REST service that gives me back data in an Array, with a nested hash. I am having trouble figuring out how to code my Factory since the return result is an array with a has inside. What would go here? Factory.define :dropbox_hash do ?? end Dropbox data looks like this: ["/home", {"revision"=>48, "rev"=>"30054214dc", "thum