1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00
capybara-webkit/spec/configuration_spec.rb

17 lines
449 B
Ruby
Raw Normal View History

require "spec_helper"
describe Capybara::Webkit::Configuration do
it "returns a hash and then prevents future modification" do
Capybara::Webkit.configure do |config|
config.debug = true
end
result = Capybara::Webkit::Configuration.to_hash
expect(result).to include(debug: true)
expect { Capybara::Webkit.configure {} }.to raise_error(
"All configuration must take place before the driver starts"
)
end
end