Skip to content

Commit

Permalink
Treat callback_query_id as string in spec helper (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
rndev15 authored Apr 16, 2024
1 parent 6140f7a commit b05f17b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/telegram/bot/rspec/callback_query_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
Expand Down

0 comments on commit b05f17b

Please sign in to comment.