Follow-up from "Update runner.enabled to rely on presence of config file"
Some suggestions that could be made as a follow up to !1094 (merged)
-bool(:enabled) { !!read!(config.runner.config_file) || false }
+bool(:enabled) { !!read!(config.runner.config_file) }
let(:file_contents) { nil }
before do
allow_any_instance_of(GDK::ConfigSettings).to receive(:read!).with(config.runner.config_file) { file_contents }
end
context 'when config_file does not exist' do
it 'returns false' do
expect(config.runner.enabled).to be(false)
end
end