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.

15 lines
499 B

9 years ago
  1. require 'spec_helper'
  2. describe SlackRubyBot::Commands::Unknown do
  3. def app
  4. SlackRubyBot::App.new
  5. end
  6. let(:client) { app.send(:client) }
  7. it 'invalid command' do
  8. expect(message: "#{SlackRubyBot.config.user} foobar").to respond_with_slack_message("Sorry <@user>, I don't understand that command!")
  9. end
  10. it 'does not respond to sad face' do
  11. expect(SlackRubyBot::Commands::Base).to_not receive(:send_message)
  12. SlackRubyBot::App.new.send(:message, client, text: ':((')
  13. end
  14. end