Skip to content

Commit 778d37f

Browse files
fix cypress_folder deprecation warning by internal code (shakacode#136)
1 parent f713213 commit 778d37f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### Fixed
2+
* fix cypress_folder deprecation warning by internal code [PR 136](https://github.com/shakacode/cypress-on-rails/pull/136)
3+
14
## [1.15.0]
25
[Compare]: https://github.com/shakacode/cypress-on-rails/compare/v1.14.0...v1.15.0
36

lib/cypress_on_rails/command_executor.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ def self.perform(file,command_options = nil)
1515

1616
def self.load_e2e_helper
1717
e2e_helper_file = "#{configuration.install_folder}/e2e_helper.rb"
18-
cypress_helper_file = "#{configuration.cypress_folder}/cypress_helper.rb"
18+
cypress_helper_file = "#{configuration.install_folder}/cypress_helper.rb"
1919
if File.exist?(e2e_helper_file)
2020
Kernel.require e2e_helper_file
2121
elsif File.exist?(cypress_helper_file)
2222
Kernel.require cypress_helper_file
23-
warn "cypress_helper.rb and cypress_folder are deprecated, please use the install generator to create e2e_helper.rb using install_folder"
23+
warn "cypress_helper.rb is deprecated, please rename the file to e2e_helper.rb"
2424
else
2525
logger.warn "could not find #{e2e_helper_file} nor #{cypress_helper_file}"
2626
end

0 commit comments

Comments
 (0)