Sha256: 4776c299871829e10ea7003ae210bc6e1f6f8525512c44d8263df37f43d41f3c

Contents?: true

Size: 440 Bytes

Versions: 14

Compression:

Stored size: 440 Bytes

Contents

require_relative './spec_helper'

RSpec.describe Slack::Client, :vcr do
  describe :auth do
    describe :test do
      it "with valid token" do
        expect(
          valid_client.auth_test
        ).to valid_response
      end

      it "with invalid token" do
        expect(
          invalid_client.auth_test
        ).to include({
          "ok" => false,
          "error" => "invalid_auth"
        })
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
slack-api-1.6.1 spec/auth_spec.rb
slack-api-1.6.0 spec/auth_spec.rb
slack-api-1.5.0 spec/auth_spec.rb
slack-api-1.4.0 spec/auth_spec.rb
slack-api-1.3.0 spec/auth_spec.rb
slack-api-1.2.4 spec/auth_spec.rb
slack-api-1.2.3 spec/auth_spec.rb
slack-api-1.2.2 spec/auth_spec.rb
slack-web-api-0.0.1 spec/auth_spec.rb
slack-api-1.2.1 spec/auth_spec.rb
slack-api-1.2.0 spec/auth_spec.rb
slack-api-1.1.6 spec/auth_spec.rb
slack-api-1.1.4 spec/auth_spec.rb
slack-api-1.1.3 spec/auth_spec.rb