From 45f36b8ed9cf78bc35b448413950f89334b1a4dd Mon Sep 17 00:00:00 2001 From: Kieran Pilkington Date: Sun, 28 Dec 2008 12:52:10 +1300 Subject: [PATCH] adding specs for the selenium environment/port settings --- spec/webrat/core/configuration_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/webrat/core/configuration_spec.rb b/spec/webrat/core/configuration_spec.rb index 6c22565..00045af 100755 --- a/spec/webrat/core/configuration_spec.rb +++ b/spec/webrat/core/configuration_spec.rb @@ -25,13 +25,23 @@ describe Webrat::Configuration do config.should open_error_files end + it "should have selenium setting defaults" do + config = Webrat::Configuration.new + config.selenium_environment.should == :selenium + config.selenium_port.should == 3001 + end + it "should be configurable with a block" do Webrat.configure do |config| config.open_error_files = false + config.selenium_environment = :test + config.selenium_port = 4000 end config = Webrat.configuration config.should_not open_error_files + config.selenium_environment.should == :test + config.selenium_port.should == 4000 end [:rails,