Sha256: f02b2b6f28ce708309e1ab1d74d95cb2508575de13435ac29374d8a422c142b9

Contents?: true

Size: 296 Bytes

Versions: 13

Compression:

Stored size: 296 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

describe Slack::Config do
  describe '#configure' do
    before do
      Slack.configure do |config|
        config.token = 'a token'
      end
    end

    it 'sets token' do
      expect(Slack.config.token).to eq 'a token'
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 spec/slack/config_spec.rb
slack-ruby-client-2.3.0 spec/slack/config_spec.rb
slack-ruby-client-2.2.0 spec/slack/config_spec.rb
slack-ruby-client-2.1.0 spec/slack/config_spec.rb
slack-ruby-client-2.0.0 spec/slack/config_spec.rb
slack-ruby-client-1.1.0 spec/slack/config_spec.rb
slack-ruby-client-1.0.0 spec/slack/config_spec.rb
slack-ruby-client-0.17.0 spec/slack/config_spec.rb
slack-ruby-client-0.16.0 spec/slack/config_spec.rb
slack-ruby-client-0.15.1 spec/slack/config_spec.rb
slack-ruby-client-0.15.0 spec/slack/config_spec.rb
slack-ruby-client-0.14.6 spec/slack/config_spec.rb
slack-ruby-client-0.14.5 spec/slack/config_spec.rb