Fix coding standards in specs
This commit is contained in:
@@ -21,7 +21,7 @@ describe Sound do
|
||||
end
|
||||
|
||||
describe '#file=' do
|
||||
let (:file) { FactoryGirl.attributes_for(:sound)[:file] }
|
||||
let(:file) { FactoryGirl.attributes_for(:sound)[:file] }
|
||||
|
||||
it 'saves the file SHA256 digest' do
|
||||
expect(sound.sha256).to eq Digest::SHA256.file(file.path).hexdigest
|
||||
|
@@ -26,7 +26,7 @@ describe Track do
|
||||
it 'builds a new related sound with the file' do
|
||||
sounds = double 'sounds association proxy'
|
||||
allow(track).to receive(:sounds) { sounds }
|
||||
expect(sounds).to receive(:build).with({file: file})
|
||||
expect(sounds).to receive(:build).with(file: file)
|
||||
track.file = file
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user