fixed broken test

This commit is contained in:
Hauke Klement
2015-03-12 19:08:13 +01:00
parent 58da5d5d66
commit 839fdebb71

View File

@ -45,6 +45,7 @@ describe CodeOcean::File do
end
it 'validates the absence of a weight' do
allow(file).to receive(:clear_weight)
file.update(weight: 1)
expect(file.errors[:weight]).to be_present
end