spec/watirspec/capabilities_spec.rb in watir-7.2.1 vs spec/watirspec/capabilities_spec.rb in watir-7.2.2
- old
+ new
@@ -81,9 +81,16 @@
expect(selenium_args).not_to include(:service)
expect(actual_http).to be_a HttpClient
end
describe 'capabilities' do
+ it 'accepts namespaced value' do
+ options = {'key:value' => 'something'}
+ @browser = described_class.new(browser_symbol, options: options)
+
+ expect(generated_options.instance_variable_get(:@options)['key:value']).to eq 'something'
+ end
+
it 'just options object has options and watir client without capabilities or service' do
@browser = described_class.new(options: Options.send(browser_symbol))
expect(generated_options).to be_a Options.send(browser_symbol).class
expect(selenium_args).not_to include(:service)