22
33module CypressRails
44 class Config
5- attr_accessor :dir , :cy_dir , :host , :port , :base_path , :transactional_server , :cypress_cli_opts
5+ attr_accessor :rails_dir , :cypress_dir , :host , :port , :base_path , :transactional_server , :cypress_cli_opts
66
77 def initialize (
8- dir : Env . fetch ( "CYPRESS_RAILS_DIR" , default : Dir . pwd ) ,
9- cy_dir : Env . fetch ( "CYPRESS_DIR" , default : Dir . pwd ) ,
8+ rails_dir : Env . fetch ( "CYPRESS_RAILS_DIR" , default : Dir . pwd ) ,
9+ cypress_dir : Env . fetch ( "CYPRESS_DIR" , default : Dir . pwd ) ,
1010 host : Env . fetch ( "CYPRESS_RAILS_HOST" , default : "127.0.0.1" ) ,
1111 port : Env . fetch ( "CYPRESS_RAILS_PORT" ) ,
1212 base_path : Env . fetch ( "CYPRESS_RAILS_BASE_PATH" , default : "/" ) ,
1313 transactional_server : Env . fetch ( "CYPRESS_RAILS_TRANSACTIONAL_SERVER" , type : :boolean , default : true ) ,
1414 cypress_cli_opts : Env . fetch ( "CYPRESS_RAILS_CYPRESS_OPTS" , default : "" )
1515 )
16- @dir = dir
17- @cy_dir = cy_dir
16+ @rails_dir = rails_dir
17+ @cypress_dir = cypress_dir
1818 @host = host
1919 @port = port
2020 @base_path = base_path
@@ -27,8 +27,8 @@ def to_s
2727
2828 cypress-rails configuration:
2929 ============================
30- CYPRESS_RAILS_DIR.....................#{ dir . inspect }
31- CYPRESS_DIR...........................#{ cy_dir . inspect }
30+ CYPRESS_RAILS_DIR.....................#{ rails_dir . inspect }
31+ CYPRESS_DIR...........................#{ cypress_dir . inspect }
3232 CYPRESS_RAILS_HOST....................#{ host . inspect }
3333 CYPRESS_RAILS_PORT....................#{ port . inspect }
3434 CYPRESS_RAILS_BASE_PATH...............#{ base_path . inspect }
0 commit comments