spec/flipper/cloud_spec.rb in flipper-cloud-0.11.0.beta4 vs spec/flipper/cloud_spec.rb in flipper-cloud-0.11.0.beta5

- old
+ new

@@ -66,6 +66,24 @@ end instance = described_class.new('asdf', adapter_wrapper: adapter_wrapper) # instance.adapter is memoizable adapter instance expect(instance.adapter.adapter).to be_instance_of(Flipper::Adapters::Instrumented) end + + it 'can set debug_output' do + expect(Flipper::Adapters::Http::Client).to receive(:new) + .with(hash_including(debug_output: STDOUT)) + described_class.new('asdf', debug_output: STDOUT) + end + + it 'can set read_timeout' do + expect(Flipper::Adapters::Http::Client).to receive(:new) + .with(hash_including(read_timeout: 1)) + described_class.new('asdf', read_timeout: 1) + end + + it 'can set open_timeout' do + expect(Flipper::Adapters::Http::Client).to receive(:new) + .with(hash_including(open_timeout: 1)) + described_class.new('asdf', open_timeout: 1) + end end