[rb] move logging and rspec matchers to top namespace#12298
[rb] move logging and rspec matchers to top namespace#12298titusfortner wants to merge 1 commit intotrunkfrom
Conversation
|
Also, should we move the |
18c38fe to
6d53106
Compare
| debugged: 'DEBUG'}.freeze | ||
|
|
||
| LEVELS.each_key do |level| | ||
| RSpec::Matchers.define :"have_#{level}" do |expected_ids, logger = nil| |
There was a problem hiding this comment.
This will be loaded in runtime where RSpec might be unavailable. It would be better to keep it in rb/spec/ so it's not part of the gem itself.
|
I put this at top level in case we want to release a separate |
You would then need to make sure that matchers are not loaded unless RSpec is available. |
fd2b9e5 to
d473082
Compare
|
Yeah, this needed several pieces of tidying still.
|
d473082 to
5ae460a
Compare
5ae460a to
111d533
Compare
Description
Selenium::WebDriver.logger(requires forwardingprogname)Motivation and Context
Considerations
Should this file be namespaced?
Is there a better alternative to passing in a custom logger with each method?
Types of changes