Sha256: 28679c6294ac6e847794a0cb6f2d24fa4ef83ec9d84894ea192a9534ba00ccdc

Contents?: true

Size: 910 Bytes

Versions: 1

Compression:

Stored size: 910 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::Canvases do
  let(:client) { Slack::Web::Client.new }
  context 'canvases_delete' do
    it 'requires canvas_id' do
      expect { client.canvases_delete }.to raise_error ArgumentError, /Required arguments :canvas_id missing/
    end
  end
  context 'canvases_edit' do
    it 'requires canvas_id' do
      expect { client.canvases_edit(changes: %q[[{"operation":"insert_before","document_content":{"type":"markdown","markdown":"Example content"},"section_id":"temp:C:AAAAAAAAAAAAAAAAAAAAAAAAAAAA"}]]) }.to raise_error ArgumentError, /Required arguments :canvas_id missing/
    end
    it 'requires changes' do
      expect { client.canvases_edit(canvas_id: %q[F1234ABCD]) }.to raise_error ArgumentError, /Required arguments :changes missing/
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 spec/slack/web/api/endpoints/canvases_spec.rb