slack-ruby/slack-ruby-bot

View on GitHub
lib/slack-ruby-bot/rspec/support/slack_ruby_bot_configure.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

RSpec.configure do |config|
  config.before :each do
    SlackRubyBot.configure do |c|
      c.token = 'testtoken'
      c.user = 'rubybot'
      c.user_id = 'DEADBEEF'
    end
  end

  config.after :each do
    SlackRubyBot::Config.reset!
  end
end