Skip to content

Commit 26233cd

Browse files
justin808claude
andcommitted
Fix install_folder path in generator initializer template
The generator was setting install_folder to include the framework subdirectory (e.g., e2e/cypress), but the correct path should be just the install folder (e.g., e2e) where the cypress.config.js file is located. This fixes the issue where Cypress couldn't find the config file after running the install generator. Fixes #201 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent abb505c commit 26233cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/cypress_on_rails/templates/config/initializers/cypress_on_rails.rb.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
if defined?(CypressOnRails)
22
CypressOnRails.configure do |c|
33
c.api_prefix = "<%= options.api_prefix %>"
4-
c.install_folder = File.expand_path("#{__dir__}/../../<%= options.install_folder %>/<%= options.framework %>")
4+
c.install_folder = File.expand_path("#{__dir__}/../../<%= options.install_folder %>")
55
# WARNING!! CypressOnRails can execute arbitrary ruby code
66
# please use with extra caution if enabling on hosted servers or starting your local server on 0.0.0.0
77
c.use_middleware = !Rails.env.production?

0 commit comments

Comments
 (0)