merge master
This commit is contained in:
@ -45,7 +45,7 @@ RSpec.describe ExerciseService::PushExternal do
|
||||
end
|
||||
|
||||
context 'when response status is success' do
|
||||
it { is_expected.to be nil }
|
||||
it { is_expected.to be_nil }
|
||||
|
||||
context 'when response status is 500' do
|
||||
let(:status) { 500 }
|
||||
@ -58,7 +58,7 @@ RSpec.describe ExerciseService::PushExternal do
|
||||
context 'when an error occurs' do
|
||||
before { allow(Faraday).to receive(:new).and_raise(StandardError) }
|
||||
|
||||
it { is_expected.not_to be nil }
|
||||
it { is_expected.not_to be_nil }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -16,7 +16,7 @@ describe ProformaService::ExportTask do
|
||||
subject(:export_task) { described_class.new }
|
||||
|
||||
it 'assigns exercise' do
|
||||
expect(export_task.instance_variable_get(:@exercise)).to be nil
|
||||
expect(export_task.instance_variable_get(:@exercise)).to be_nil
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -26,7 +26,7 @@ describe ProformaService::ExportTask do
|
||||
|
||||
let(:task) { Proforma::Task.new }
|
||||
let(:exercise) { build(:dummy) }
|
||||
let(:exporter) { instance_double('Proforma::Exporter', perform: 'zip') }
|
||||
let(:exporter) { instance_double(Proforma::Exporter, perform: 'zip') }
|
||||
|
||||
before do
|
||||
allow(ProformaService::ConvertExerciseToTask).to receive(:call).with(exercise: exercise).and_return(task)
|
||||
|
Reference in New Issue
Block a user