-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Immutable Dispatcher #13
Conversation
782115a
to
b4d2aaf
Compare
b4d2aaf
to
4e187f9
Compare
14b8b6b
to
e692575
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems straightforward enough, but not sure about the commented out specs...?
context 'when one listener is provided' do | ||
let(:listeners) { | ||
[ | ||
{ event_name: event_name, listener: listener, listener_method: listener_method, priority: priority }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor 💅, there should be no space after {
and before }
, as this is a hash, not a block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess rubocop will complain!
# expect { dispatcher.dispatch(event_name: event_name) }.to output(/before/).to_stdout | ||
# end | ||
# end | ||
# end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be here...?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forgot to delete them, was just to save some work 😅
Closes #7