Sha256: ed792c40d9c9a1ae35b6e63824baae952a8949051e9f04fbeafe41a9269d17ca

Contents?: true

Size: 1.32 KB

Versions: 4

Compression:

Stored size: 1.32 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::AppsManifest do
  let(:client) { Slack::Web::Client.new }
  context 'apps.manifest_create' do
    it 'requires manifest' do
      expect { client.apps_manifest_create }.to raise_error ArgumentError, /Required arguments :manifest missing/
    end
  end
  context 'apps.manifest_delete' do
    it 'requires app_id' do
      expect { client.apps_manifest_delete }.to raise_error ArgumentError, /Required arguments :app_id missing/
    end
  end
  context 'apps.manifest_export' do
    it 'requires app_id' do
      expect { client.apps_manifest_export }.to raise_error ArgumentError, /Required arguments :app_id missing/
    end
  end
  context 'apps.manifest_update' do
    it 'requires app_id' do
      expect { client.apps_manifest_update(manifest: %q[]) }.to raise_error ArgumentError, /Required arguments :app_id missing/
    end
    it 'requires manifest' do
      expect { client.apps_manifest_update(app_id: %q[]) }.to raise_error ArgumentError, /Required arguments :manifest missing/
    end
  end
  context 'apps.manifest_validate' do
    it 'requires manifest' do
      expect { client.apps_manifest_validate }.to raise_error ArgumentError, /Required arguments :manifest missing/
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slack-ruby-client-2.1.0 spec/slack/web/api/endpoints/apps_manifest_spec.rb
slack-ruby-client-2.0.0 spec/slack/web/api/endpoints/apps_manifest_spec.rb
slack-ruby-client-1.1.0 spec/slack/web/api/endpoints/apps_manifest_spec.rb
slack-ruby-client-1.0.0 spec/slack/web/api/endpoints/apps_manifest_spec.rb