slack-ruby-bot icon indicating copy to clipboard operation
slack-ruby-bot copied to clipboard

Testing hooks

Open dansteele opened this issue 8 years ago • 1 comments

Howdy @dblock I'm creating an implementation based off of this for my team. I need to use hooks, and would like to test them in rspec. I've been digging through the source code, and been trying to roll my own solution, but I'm not very happy with it so far. I was wondering if someone has a sexy way of mocking a hook? Thanks!

dansteele avatar Feb 24 '17 10:02 dansteele

Did you dig through https://github.com/slack-ruby/slack-ruby-bot/tree/master/spec/slack-ruby-bot/hooks? Maybe an RSpec helper could do better, PRs welcome.

dblock avatar Feb 24 '17 19:02 dblock