1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-04 10:15:50 +03:00

Add deprecated fallback at telegram/bot/rspec/integration

Этот коммит содержится в:
Max Melentiev
2018-06-06 13:33:32 +06:00
родитель a9b45c70cf
Коммит fb02c34be9
7 изменённых файлов: 23 добавлений и 5 удалений

10
lib/telegram/bot/rspec/integration.rb Обычный файл
Просмотреть файл

@@ -0,0 +1,10 @@
require 'telegram/bot'
Telegram::Bot.deprecation_0_15.warn(
"`require 'telegram/bot/rspec/integration'` is deprecated in favor of " \
"`require 'telegram/bot/rspec/integration/rails'`"
)
require 'telegram/bot/rspec/integration/rails'
Telegram::Bot::RSpec.with_include_context do |config|
config.include_context 'telegram/bot/integration/rails', telegram_bot: true
end

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

@@ -24,6 +24,5 @@ RSpec.shared_context 'telegram/bot/integration/rails', type: :request do
end
Telegram::Bot::RSpec.with_include_context do |config|
config.include_context 'telegram/bot/integration/rails', :telegram_bot
config.include_context 'telegram/bot/integration/rails', telegram_bot: :rails
end