We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99b1909 commit 3ade086Copy full SHA for 3ade086
spec/other/factories_spec.rb
@@ -3,6 +3,14 @@
3
require 'rails_helper'
4
5
RSpec.describe 'Factories' do
6
+ let(:codeocean_config) { instance_double(CodeOcean::Config) }
7
+ let(:runner_management_config) { {runner_management: {enabled: false}} }
8
+
9
+ before do
10
+ allow(CodeOcean::Config).to receive(:new).with(:code_ocean).and_return(codeocean_config)
11
+ allow(codeocean_config).to receive(:read).and_return(runner_management_config)
12
+ end
13
14
it 'are all valid', permitted_execution_time: 30 do
15
expect { FactoryBot.lint }.not_to raise_error
16
end
0 commit comments