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.
 

19 lines
449 B

require 'spec_helper'
describe SlackRubyBot do
def app
SlackRubyBot::App.new
end
before do
ENV['SLACK_RUBY_BOT_ALIASES'] = ':emoji: alias'
end
after do
ENV.delete('SLACK_RUBY_BOT_ALIASES')
end
it 'responds to emoji' do
expect(message: ':emoji: hi').to respond_with_slack_message('Hi <@user>!')
end
it 'responds to an alias' do
expect(message: 'alias hi').to respond_with_slack_message('Hi <@user>!')
end
end