Sha256: f9e5d483e30dc3bd0da1de6c8f6a3fc8bc94955af660f622d1522fa4860dbdee

Contents?: true

Size: 510 Bytes

Versions: 3

Compression:

Stored size: 510 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::Dialog do
  let(:client) { Slack::Web::Client.new }
  context 'dialog_open' do
    it 'encodes dialog as json' do
      expect(client).to receive(:post).with('dialog.open', {dialog: %q[{"data":["data"]}], trigger_id: %q[12345.98765.abcd2358fdea]})
      client.dialog_open(dialog: {:data=>["data"]}, trigger_id: %q[12345.98765.abcd2358fdea])
    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/dialog_spec.rb
slack-ruby-client-2.3.0 spec/slack/web/api/endpoints/dialog_spec.rb
slack-ruby-client-2.2.0 spec/slack/web/api/endpoints/dialog_spec.rb