public
Description: Webrat - Ruby Acceptance Testing for Web applications
Homepage: http://gitrdoc.com/brynary/webrat/tree/master/
Clone URL: git://github.com/brynary/webrat.git
adding specs for the selenium environment/port settings
Kieran Pilkington (author)
Sat Dec 27 15:52:10 -0800 2008
commit  45f36b8ed9cf78bc35b448413950f89334b1a4dd
tree    6e5ed2462747c6c9494f7bdd3ecd46474dd386b2
parent  2c51d908301e23a8594eda49f0d64ce197b3e842
...
25
26
27
 
 
 
 
 
 
28
29
30
 
 
31
32
33
34
 
 
35
36
37
...
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
0
@@ -25,13 +25,23 @@ describe Webrat::Configuration do
0
     config.should open_error_files
0
   end
0
   
0
+  it "should have selenium setting defaults" do
0
+    config = Webrat::Configuration.new
0
+    config.selenium_environment.should == :selenium
0
+    config.selenium_port.should == 3001
0
+  end
0
+  
0
   it "should be configurable with a block" do
0
     Webrat.configure do |config|
0
       config.open_error_files = false
0
+      config.selenium_environment = :test
0
+      config.selenium_port = 4000
0
     end
0
     
0
     config = Webrat.configuration
0
     config.should_not open_error_files
0
+    config.selenium_environment.should == :test
0
+    config.selenium_port.should == 4000
0
   end
0
   
0
   [:rails, 

Comments