зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-04 10:15:50 +03:00
Add deprecated fallback at telegram/bot/rspec/integration
Этот коммит содержится в:
10
lib/telegram/bot/rspec/integration.rb
Обычный файл
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
|
||||
|
||||
Ссылка в новой задаче
Block a user