public
Description: This repo is no longer maintained, see the official repository by paytonrules.
Homepage: http://selenium-on-rails.openqa.org/
Clone URL: git://github.com/ryanb/selenium-on-rails.git
fixing layout path issue in Rails 2.1
ryanb (author)
Sun Jun 29 16:20:23 -0700 2008
commit  b87151cb56a20d75de0ee07edeea21df15bb5184
tree    1cfadf69ba4adc68b4b4c8bd290fa18a5896b72e
parent  ebf9a4f0d95cc5871f9e13b16d72e1b29724c30c
...
6
7
8
9
 
 
10
11
12
...
6
7
8
 
9
10
11
12
13
0
@@ -6,7 +6,8 @@ if envs.include? RAILS_ENV
0
   $LOAD_PATH << File.dirname(__FILE__) + "/lib/controllers"
0
   require 'selenium_controller'
0
   require File.dirname(__FILE__) + '/routes'
0
-
0
+  
0
+  SeleniumController.prepend_view_path File.expand_path(File.dirname(__FILE__) + '/lib/views')
0
 else
0
   #erase all traces
0
   $LOAD_PATH.delete lib_path
...
17
18
19
20
21
22
 
23
24
25
...
17
18
19
 
 
 
20
21
22
23
0
@@ -17,9 +17,7 @@ module SeleniumOnRails
0
     # to the app/views/ directory since Rails doesn't support absolute paths
0
     # to layout templates.
0
     def layout_path
0
-      rails_root = Pathname.new File.expand_path(File.join(RAILS_ROOT, 'app/views'))
0
-      view_path = Pathname.new view_path('layout')
0
-      view_path.relative_path_from(rails_root).to_s
0
+      '/layout.rhtml'
0
     end
0
     
0
     def fixtures_path

Comments