spec/slack/web/api/endpoints/bookmarks_spec.rb in slack-ruby-client-2.1.0 vs spec/slack/web/api/endpoints/bookmarks_spec.rb in slack-ruby-client-2.2.0
- old
+ new
@@ -8,19 +8,19 @@
context 'bookmarks_add' do
it 'requires channel_id' do
expect { client.bookmarks_add(title: %q[], type: %q[]) }.to raise_error ArgumentError, /Required arguments :channel_id missing/
end
it 'requires title' do
- expect { client.bookmarks_add(channel_id: %q[], type: %q[]) }.to raise_error ArgumentError, /Required arguments :title missing/
+ expect { client.bookmarks_add(channel_id: %q[C1234567890], type: %q[]) }.to raise_error ArgumentError, /Required arguments :title missing/
end
it 'requires type' do
- expect { client.bookmarks_add(channel_id: %q[], title: %q[]) }.to raise_error ArgumentError, /Required arguments :type missing/
+ expect { client.bookmarks_add(channel_id: %q[C1234567890], title: %q[]) }.to raise_error ArgumentError, /Required arguments :type missing/
end
end
context 'bookmarks_edit' do
it 'requires bookmark_id' do
- expect { client.bookmarks_edit(channel_id: %q[]) }.to raise_error ArgumentError, /Required arguments :bookmark_id missing/
+ expect { client.bookmarks_edit(channel_id: %q[C1234567890]) }.to raise_error ArgumentError, /Required arguments :bookmark_id missing/
end
it 'requires channel_id' do
expect { client.bookmarks_edit(bookmark_id: %q[]) }.to raise_error ArgumentError, /Required arguments :channel_id missing/
end
end
@@ -29,10 +29,10 @@
expect { client.bookmarks_list }.to raise_error ArgumentError, /Required arguments :channel_id missing/
end
end
context 'bookmarks_remove' do
it 'requires bookmark_id' do
- expect { client.bookmarks_remove(channel_id: %q[]) }.to raise_error ArgumentError, /Required arguments :bookmark_id missing/
+ expect { client.bookmarks_remove(channel_id: %q[C1234567890]) }.to raise_error ArgumentError, /Required arguments :bookmark_id missing/
end
it 'requires channel_id' do
expect { client.bookmarks_remove(bookmark_id: %q[]) }.to raise_error ArgumentError, /Required arguments :channel_id missing/
end
end