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

Read was never working #52

Merged
merged 1 commit into from
Jul 27, 2016
Merged

Read was never working #52

merged 1 commit into from
Jul 27, 2016

Conversation

sorich87
Copy link
Collaborator

The changes in #41 were supposed to add support to read payloads. But it actually never worked because read wasn't added to the list of events which can be passed to Bot.on. Doing Bot.on :read was generating the error /gems/facebook-messenger-0.8.0/lib/facebook/messenger/bot.rb:34:inon': read is not a valid event; available events are message,delivery,postback,optin (ArgumentError)`.

This pull request fixes it. It also adds more unit tests.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.8%) to 99.636% when pulling 2b84549 on sorich87:hotfix/read-was-never-working into 461400d on hyperoslo:master.

@nashby nashby merged commit a72a09c into jgorset:master Jul 27, 2016
@nashby
Copy link
Contributor

nashby commented Jul 27, 2016

@sorich87 good catch! Thanks for the awesome PR! ❤️

@sorich87 sorich87 deleted the hotfix/read-was-never-working branch July 27, 2016 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants