renamed the sha column to the proper sha1

This commit is contained in:
Régis Hanol
2013-06-17 22:16:14 +02:00
parent 1051b8de84
commit ae3543872c
5 changed files with 28 additions and 13 deletions

View File

@@ -34,7 +34,7 @@ describe Upload do
upload.user_id.should == user_id
upload.original_filename.should == logo.original_filename
upload.filesize.should == File.size(logo.tempfile)
upload.sha.should == Digest::SHA1.file(logo.tempfile).hexdigest
upload.sha1.should == Digest::SHA1.file(logo.tempfile).hexdigest
upload.width.should == 244
upload.height.should == 66
upload.url.should == url