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.
|
require 'spec_helper'
|
|
|
|
describe SlackRubyBot::Commands::Hi do
|
|
def app
|
|
SlackRubyBot::App.new
|
|
end
|
|
it 'says hi' do
|
|
expect(message: "#{SlackRubyBot.config.user} hi").to respond_with_slack_message('Hi <@user>!')
|
|
end
|
|
it 'says hi to bot:' do
|
|
expect(message: "#{SlackRubyBot.config.user}: hi").to respond_with_slack_message('Hi <@user>!')
|
|
end
|
|
it 'says hi to @bot' do
|
|
expect(message: "<@#{SlackRubyBot.config.user_id}> hi").to respond_with_slack_message('Hi <@user>!')
|
|
end
|
|
it 'says hi to @bot: ' do
|
|
expect(message: "<@#{SlackRubyBot.config.user_id}>: hi").to respond_with_slack_message('Hi <@user>!')
|
|
end
|
|
end
|