Skip to content

Commit d27571e

Browse files
committed
Fix: remove unnecessary patch.
1 parent fc3f81c commit d27571e

File tree

3 files changed

+2
-30
lines changed

3 files changed

+2
-30
lines changed

lib/slack/web/api/patches/.gitkeep

Whitespace-only changes.

lib/slack/web/api/patches/chat.attachments-blocks.patch

Lines changed: 0 additions & 21 deletions
This file was deleted.

spec/slack/web/api/endpoints/custom_specs/chat_spec.rb

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
context 'text and user arguments' do
3535
it 'requires text or attachments' do
36-
expect { client.chat_postEphemeral(channel: 'channel') }.to(
36+
expect { client.chat_postEphemeral(channel: 'channel', user: '123') }.to(
3737
raise_error(ArgumentError, /At least one of :attachments, :blocks, :text is required/)
3838
)
3939
end
@@ -167,7 +167,7 @@
167167
context 'text, attachment and blocks arguments' do
168168
it 'requires text, attachments, blocks or reply_broadcast' do
169169
expect { client.chat_update(channel: 'channel', ts: ts) }.to(
170-
raise_error(ArgumentError, /At least one of :attachments, :blocks, :text, :reply_broadcast is required/)
170+
raise_error(ArgumentError, /At least one of :attachments, :blocks, :text is required/)
171171
)
172172
end
173173

@@ -192,13 +192,6 @@
192192
end.not_to raise_error
193193
end
194194

195-
it 'only reply_broadcast' do
196-
expect(client).to receive(:post).with('chat.update', hash_including(reply_broadcast: true))
197-
expect do
198-
client.chat_update(channel: 'channel', ts: ts, reply_broadcast: true)
199-
end.not_to raise_error
200-
end
201-
202195
it 'all text, attachments and blocks' do
203196
expect(client).to(
204197
receive(:post)

0 commit comments

Comments
 (0)