Skip to content

Commit 1985240

Browse files
authored
Improve eval() in command executor (#46)
1 parent a5809dd commit 1985240

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
## [Unreleased]
22
[Compare]: https://github.com/shakacode/cypress-on-rails/compare/v1.6.0...master
33

4+
### Changed
5+
* Improve eval() in command executor [PR 46](https://github.com/shakacode/cypress-on-rails/pull/46) by [Systho](https://github.com/Systho)
6+
47
### Fixed
58
* Add middleware after load_config_initializers [PR 62](https://github.com/shakacode/cypress-on-rails/pull/62) by [duytd](https://github.com/duytd)
69

lib/cypress_on_rails/command_executor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class CommandExecutor
66
def self.load(file,command_options = nil)
77
load_cypress_helper
88
file_data = File.read(file)
9-
eval file_data
9+
eval file_data, binding, file
1010
rescue => e
1111
logger.error("fail to execute #{file}: #{e.message}")
1212
logger.error(e.backtrace.join("\n"))

0 commit comments

Comments
 (0)