From b05f17b02b5ae55de837510dca145ae534b9455e Mon Sep 17 00:00:00 2001 From: Roman Novoselov Date: Tue, 16 Apr 2024 20:15:15 +0300 Subject: [PATCH] Treat callback_query_id as string in spec helper (#231) --- lib/telegram/bot/rspec/callback_query_helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/telegram/bot/rspec/callback_query_helpers.rb b/lib/telegram/bot/rspec/callback_query_helpers.rb index 51d201d..504a92a 100644 --- a/lib/telegram/bot/rspec/callback_query_helpers.rb +++ b/lib/telegram/bot/rspec/callback_query_helpers.rb @@ -9,7 +9,7 @@ subject { -> { dispatch callback_query: payload } } let(:payload) { {id: callback_query_id, from: from, message: message, data: data} } - let(:callback_query_id) { 11 } + let(:callback_query_id) { '11' } let(:message_id) { 22 } let(:message) { {message_id: message_id, chat: chat, text: 'message text'} } let(:data) { raise '`let(:data) { "callback query data here" }` is required' }