A Slack Bot that pulls Pixiv information and posts the full image(s) into Slack, with iOS shortcuts.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
429 B

  1. require 'spec_helper'
  2. describe SlackMathbot::Commands::Unknown, vcr: { cassette_name: 'user_info' } do
  3. it 'invalid command' do
  4. expect(message: 'mathbot foobar').to respond_with_slack_message("Sorry <@user>, I don't understand that command!")
  5. end
  6. it 'does not respond to sad face' do
  7. expect(SlackMathbot::Commands::Base).to_not receive(:send_message)
  8. SlackMathbot::App.new.send(:message, text: ':((')
  9. end
  10. end