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

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