Fix coding standards in specs

This commit is contained in:
Thibault Jouan
2014-04-01 19:14:11 +00:00
parent e6f6475705
commit 2acf0371b5
10 changed files with 16 additions and 17 deletions

View File

@@ -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

View File

@@ -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