Sha256: 314cb4dc820d94d9fad6cee0c3202b6fb70c6b5fed8d4f8cdc9bc195e7f1a4e6

Contents?: true

Size: 529 Bytes

Versions: 5

Compression:

Stored size: 529 Bytes

Contents

module Boty
  module Slack
    RSpec.describe RTM do
      subject(:rtm) { described_class.new }

      let(:url_with_default_parameters) {
        "https://#{ENV['SLACK_COMPANY']}.slack.com/api/rtm.start?" \
          "token=#{ENV['SLACK_BOT_API_TOKEN']}&" \
          "simple_latest=true&no_unreads=true"
      }

      describe "#start" do
        it "uses api to start the session" do
          expect(Slack::URL).to receive(:get).with(url_with_default_parameters)
          rtm.start
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
boty-1.0.1 spec/boty/slack/rtm_spec.rb
boty-1.0.0 spec/boty/slack/rtm_spec.rb
boty-0.2.0 spec/boty/slack/rtm_spec.rb
boty-0.1.2 spec/boty/slack/rtm_spec.rb
boty-0.1.1 spec/boty/slack/rtm_spec.rb