Sha256: 9237363b96ad6695246824582a1846169da60c3bdea099c5dea788e80e2a9479

Contents?: true

Size: 453 Bytes

Versions: 3

Compression:

Stored size: 453 Bytes

Contents

# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

require 'spec_helper'

RSpec.describe Slack::Web::Api::Endpoints::UsersProfile do
  let(:client) { Slack::Web::Client.new }
  context 'users.profile_set' do
    it 'encodes profile as json' do
      expect(client).to receive(:post).with('users.profile.set', {profile: %q[{"data":["data"]}]})
      client.users_profile_set(profile: {:data=>["data"]})
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 spec/slack/web/api/endpoints/users_profile_spec.rb
slack-ruby-client-2.3.0 spec/slack/web/api/endpoints/users_profile_spec.rb
slack-ruby-client-2.2.0 spec/slack/web/api/endpoints/users_profile_spec.rb