Sha256: 2621e1da18175fe0eb5a642900a47e76d7390ff047720c0b1509a235b4e6735a

Contents?: true

Size: 1.34 KB

Versions: 1

Compression:

Stored size: 1.34 KB

Contents

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

require 'spec_helper'

RSpec.describe Slack::Web::Api::Endpoints::WorkflowsTriggersPermissions do
  let(:client) { Slack::Web::Client.new }
  context 'workflows.triggers.permissions_add' do
    it 'requires trigger_id' do
      expect { client.workflows_triggers_permissions_add }.to raise_error ArgumentError, /Required arguments :trigger_id missing/
    end
  end
  context 'workflows.triggers.permissions_list' do
    it 'requires trigger_id' do
      expect { client.workflows_triggers_permissions_list }.to raise_error ArgumentError, /Required arguments :trigger_id missing/
    end
  end
  context 'workflows.triggers.permissions_remove' do
    it 'requires trigger_id' do
      expect { client.workflows_triggers_permissions_remove }.to raise_error ArgumentError, /Required arguments :trigger_id missing/
    end
  end
  context 'workflows.triggers.permissions_set' do
    it 'requires permission_type' do
      expect { client.workflows_triggers_permissions_set(trigger_id: %q[Ft0000000001]) }.to raise_error ArgumentError, /Required arguments :permission_type missing/
    end
    it 'requires trigger_id' do
      expect { client.workflows_triggers_permissions_set(permission_type: %q[]) }.to raise_error ArgumentError, /Required arguments :trigger_id 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/workflows_triggers_permissions_spec.rb