Commit be8e2f81
Changed files (2)
app
services
application
handlers
spec
services
application
handlers
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