Commit 03d9e6c2

mo khan <mo@mokhan.ca>
2014-06-07 15:41:14
switch to new hash syntax.
1 parent e4feb64
Changed files (1)
spec
spec/controllers/my/photos_controller_spec.rb
@@ -50,12 +50,12 @@ module My
       it "should respond with the proper json" do
         response.body.should ==
         {
-          :files => [{
-              :name => "example.png",
-              :url => "#{asset_host}/uploads/photo/image/#{photo.id}/large_example.png",
-              :thumbnail_url => "#{asset_host}/uploads/photo/image/#{photo.id}/thumb_example.png",
-              :delete_url => photo.id,
-              :delete_type => "DELETE"
+          files: [{
+              name: "example.png",
+              url: "#{asset_host}/uploads/photo/image/#{photo.id}/large_example.png",
+              thumbnail_url: "#{asset_host}/uploads/photo/image/#{photo.id}/thumb_example.png",
+              delete_url: photo.id,
+              delete_type: "DELETE"
             }]
         }.to_json
       end