fixed broken test
This commit is contained in:
@ -45,6 +45,7 @@ describe CodeOcean::File do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it 'validates the absence of a weight' do
|
it 'validates the absence of a weight' do
|
||||||
|
allow(file).to receive(:clear_weight)
|
||||||
file.update(weight: 1)
|
file.update(weight: 1)
|
||||||
expect(file.errors[:weight]).to be_present
|
expect(file.errors[:weight]).to be_present
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user