Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix autoload of WebDriver::Remote::Bridge::COMMANDS
COMMANDS is defined on WebDriver::Remote::Bridge, but is defined as an autoload on WebDriver::Remote. Since it's used in WebDriver::Remote::Bridge#commands (with all the namespaces nested), Ruby will first look for the constant in WebDriver::Remote::Bridge, then WebDriver::Remote, where it finds the autoload. It requires the file, which defines WebDriver::Remote::Bridge::COMMANDS. Then Ruby emits a warning, because it expected selenium/webdriver/remote/commands to define WebDriver::Remote::COMMANDS, since that's what the autoload declares. After that, the constant can be resolved so it still works. This properly declares the constant as autoloaded under WebDriver::Remote::Bridge.
- Loading branch information