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
615 B

9 years ago
  1. require 'spec_helper'
  2. describe SlackRubyBot::Commands::Default do
  3. def app
  4. SlackRubyBot::App.new
  5. end
  6. it 'lowercase' do
  7. expect(message: SlackRubyBot.config.user).to respond_with_slack_message(SlackRubyBot::ABOUT)
  8. end
  9. it 'upcase' do
  10. expect(message: SlackRubyBot.config.user.upcase).to respond_with_slack_message(SlackRubyBot::ABOUT)
  11. end
  12. it 'name:' do
  13. expect(message: "#{SlackRubyBot.config.user}:").to respond_with_slack_message(SlackRubyBot::ABOUT)
  14. end
  15. it 'id' do
  16. expect(message: "<@#{SlackRubyBot.config.user_id}>").to respond_with_slack_message(SlackRubyBot::ABOUT)
  17. end
  18. end