Skip to content
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

Merged
merged 3 commits into from
Jul 14, 2017
Merged

Add Immutable Dispatcher #13

merged 3 commits into from
Jul 14, 2017

Conversation

dcsg
Copy link
Owner

@dcsg dcsg commented Jul 14, 2017

Closes #7

@dcsg dcsg force-pushed the implement-immutable-dispatcher branch 4 times, most recently from 782115a to b4d2aaf Compare July 14, 2017 07:36
@dcsg dcsg changed the title [WIP] Add Immutable Dispatcher Add Immutable Dispatcher Jul 14, 2017
@dcsg dcsg force-pushed the implement-immutable-dispatcher branch from b4d2aaf to 4e187f9 Compare July 14, 2017 10:47
@dcsg dcsg requested a review from ivoanjo July 14, 2017 10:47
@dcsg dcsg force-pushed the implement-immutable-dispatcher branch from 14b8b6b to e692575 Compare July 14, 2017 13:46
Copy link
Collaborator

@ivoanjo ivoanjo left a 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 },
Copy link
Collaborator

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.

Copy link
Owner Author

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be here...?

Copy link
Owner Author

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 😅

@dcsg dcsg merged commit 661f196 into master Jul 14, 2017
@dcsg dcsg deleted the implement-immutable-dispatcher branch July 14, 2017 14:40
@dcsg dcsg mentioned this pull request Jul 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants