1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-03 17:55:52 +03:00

Fix spec helpers for callback queries

Этот коммит содержится в:
Max Melentiev
2017-12-04 09:46:55 +03:00
родитель 9e396cabc4
Коммит 384d203b59
4 изменённых файлов: 49 добавлений и 3 удалений

Просмотреть файл

@@ -1,8 +1,10 @@
RSpec.shared_context 'telegram/bot/integration' do
let(:bot) { Telegram.bot }
let(:default_message_options) { {from: from, chat: chat} }
let(:from) { {id: from_id} }
let(:from_id) { 123 }
let(:chat) { {id: chat_id} }
let(:chat_id) { 456 }
let(:default_message_options) { {from: {id: from_id}, chat: {id: chat_id}} }
let(:controller_path) do
route_name = Telegram::Bot::RoutesHelper.route_name_for_bot(bot)
Rails.application.routes.url_helpers.public_send("#{route_name}_path")

Просмотреть файл

@@ -1,6 +1,6 @@
module Telegram
module Bot
VERSION = '0.12.3'.freeze
VERSION = '0.12.4'.freeze
def self.gem_version
Gem::Version.new VERSION