Skip to content

Commit 3ade086

Browse files
committed
Disable Runner Management for FactoryBot linting
1 parent 99b1909 commit 3ade086

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spec/other/factories_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
require 'rails_helper'
44

55
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+
614
it 'are all valid', permitted_execution_time: 30 do
715
expect { FactoryBot.lint }.not_to raise_error
816
end

0 commit comments

Comments
 (0)