mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
RS, IZ; Fix Photo.instantiate, make photo url include spec a little more specific
This commit is contained in:
@@ -23,6 +23,7 @@ class Photo < Post
|
||||
photo = Photo.new(params)
|
||||
photo.image.store! image_file
|
||||
photo.save
|
||||
photo
|
||||
end
|
||||
|
||||
after_save :log_save_inspection
|
||||
|
||||
Binary file not shown.
@@ -59,7 +59,7 @@ describe Photo do
|
||||
@photo.image.store! File.open(@fixture_name)
|
||||
puts @photo.image.url(:thumb_medium)
|
||||
@photo.image.url.include?(@fixture_filename).should be false
|
||||
@photo.image.url(:thumb_medium).include?(@fixture_filename).should be false
|
||||
@photo.image.url(:thumb_medium).include?("/" + @fixture_filename).should be false
|
||||
end
|
||||
|
||||
describe 'non-image files' do
|
||||
|
||||
Reference in New Issue
Block a user