Upgrade DatabaseCleaner strategy

This commit is contained in:
Sebastian Serth
2021-05-11 08:59:10 +02:00
parent 8378070bc2
commit 2b32829e60
7 changed files with 101 additions and 14 deletions

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper'
describe CodeOcean::FilesController do
@ -48,6 +50,8 @@ describe CodeOcean::FilesController do
expect { perform_request.call }.to change(CodeOcean::File, :count).by(-1)
end
expect_redirect(:exercise)
it 'redirects to exercise path' do
expect(controller).to redirect_to(exercise)
end
end
end