Include Webpack and use it for jQuery, Bootstrap and chosen.js

This commit is contained in:
Sebastian Serth
2018-10-07 23:53:16 +02:00
parent 41bd5bac10
commit 9106ab182b

View File

@ -143,7 +143,7 @@ describe SubmissionsController do
describe 'GET #run' do describe 'GET #run' do
let(:filename) { submission.collect_files.detect(&:main_file?).name_with_extension } let(:filename) { submission.collect_files.detect(&:main_file?).name_with_extension }
let(:request) { get :run, params: { filename: filename }, id: submission.id } let(:request) { get :run, params: { filename: filename , id: submission.id } }
before(:each) do before(:each) do
expect_any_instance_of(ActionController::Live::SSE).to receive(:write).at_least(3).times expect_any_instance_of(ActionController::Live::SSE).to receive(:write).at_least(3).times
@ -176,7 +176,7 @@ describe SubmissionsController do
it 'does not store the error' do it 'does not store the error' do
pending("no server sent events used right now") pending("no server sent events used right now")
expect(Error).not_to receive(:create) expect(CodeOcean::Error).not_to receive(:create)
end end
end end
@ -187,7 +187,7 @@ describe SubmissionsController do
it 'stores the error' do it 'stores the error' do
pending("no server sent events used right now") pending("no server sent events used right now")
expect(Error).to receive(:create).with(execution_environment_id: submission.exercise.execution_environment_id, message: stderr) expect(CodeOcean::Error).to receive(:create).with(execution_environment_id: submission.exercise.execution_environment_id, message: stderr)
end end
end end
end end