Update from proforma to proformaxml
This commit is contained in:

committed by
Sebastian Serth

parent
41e75ca385
commit
245c3dba8c
@ -563,7 +563,7 @@ describe ExercisesController do
|
||||
end
|
||||
|
||||
context 'when import fails with ProformaError' do
|
||||
before { allow(ProformaService::Import).to receive(:call).and_raise(Proforma::PreImportValidationError) }
|
||||
before { allow(ProformaService::Import).to receive(:call).and_raise(ProformaXML::PreImportValidationError) }
|
||||
|
||||
it 'responds with correct status code' do
|
||||
post_request
|
||||
@ -572,7 +572,7 @@ describe ExercisesController do
|
||||
end
|
||||
|
||||
context 'when import fails with ExerciseNotOwned' do
|
||||
before { allow(ProformaService::Import).to receive(:call).and_raise(Proforma::ExerciseNotOwned) }
|
||||
before { allow(ProformaService::Import).to receive(:call).and_raise(ProformaXML::ExerciseNotOwned) }
|
||||
|
||||
it 'responds with correct status code' do
|
||||
post_request
|
||||
|
Reference in New Issue
Block a user