Commit be8e2f81

mo khan <mo@mokhan.ca>
2014-06-01 21:37:46
set image_processing to nil instead of false when completed.
1 parent 0cf1bc8
Changed files (2)
app
services
application
spec
services
application
app/services/application/handlers/process_photo.rb
@@ -12,7 +12,7 @@ class ProcessPhoto
     file = File.open(message[:file_path])
     photo = @photos.find(message[:photo_id])
     photo.image = file
-    photo.image_processing = false
+    photo.image_processing = nil
     photo.content_type = message[:content_type]
     photo.original_filename = message[:original_filename]
     photo.latitude, photo.longitude = @exif_parser.parse_geolocation_from(file)
spec/services/application/handlers/process_photo_spec.rb
@@ -34,7 +34,7 @@ describe ProcessPhoto do
     end
 
     it "indicates that the photo has been processed." do
-      photo.image_processing.should be_false
+      photo.image_processing.should be_nil
     end
 
     it "specifies the content type" do