spec/integration/readme/sinclair/options_spec.rb in sinclair-1.6.2 vs spec/integration/readme/sinclair/options_spec.rb in sinclair-1.6.3

- old
+ new

@@ -13,7 +13,15 @@ expect(options.timeout).to eq(10) expect(options.retries).to eq(nil) expect(options.protocol).to eq('http') expect(options.port).to eq(443) end + + context 'when initialized with invalid options' do + it do + expect do + ConnectionOptions.new(invalid: 10) + end.to raise_error(Sinclair::Exception::InvalidOptions) + end + end end end