adding specs for the selenium environment/port settings

This commit is contained in:
Kieran Pilkington 2008-12-28 12:52:10 +13:00
parent 2c51d90830
commit 45f36b8ed9

View File

@ -25,13 +25,23 @@ describe Webrat::Configuration do
config.should open_error_files config.should open_error_files
end 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 it "should be configurable with a block" do
Webrat.configure do |config| Webrat.configure do |config|
config.open_error_files = false config.open_error_files = false
config.selenium_environment = :test
config.selenium_port = 4000
end end
config = Webrat.configuration config = Webrat.configuration
config.should_not open_error_files config.should_not open_error_files
config.selenium_environment.should == :test
config.selenium_port.should == 4000
end end
[:rails, [:rails,