spec/slack/web/api/endpoints/reminders_spec.rb in slack-ruby-client-2.1.0 vs spec/slack/web/api/endpoints/reminders_spec.rb in slack-ruby-client-2.2.0
- old
+ new
@@ -5,13 +5,13 @@
RSpec.describe Slack::Web::Api::Endpoints::Reminders do
let(:client) { Slack::Web::Client.new }
context 'reminders_add' do
it 'requires text' do
- expect { client.reminders_add(time: %q[]) }.to raise_error ArgumentError, /Required arguments :text missing/
+ expect { client.reminders_add(time: %q[1602288000]) }.to raise_error ArgumentError, /Required arguments :text missing/
end
it 'requires time' do
- expect { client.reminders_add(text: %q[]) }.to raise_error ArgumentError, /Required arguments :time missing/
+ expect { client.reminders_add(text: %q[eat a banana]) }.to raise_error ArgumentError, /Required arguments :time missing/
end
end
context 'reminders_complete' do
it 'requires reminder' do
expect { client.reminders_complete }.to raise_error ArgumentError, /Required arguments :reminder missing/