1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-08-28 15:26:18 +03:00

Remove deprecated rspec/integration

Этот коммит содержится в:
Max Melentiev
2020-12-06 18:35:10 +03:00
родитель 2a2fafa536
Коммит 863e838533
2 изменённых файлов: 2 добавлений и 12 удалений

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

@@ -14,10 +14,10 @@ module Telegram
module_function
def deprecation_0_15
def deprecation_0_16
@deprecation ||= begin
require 'active_support/deprecation'
ActiveSupport::Deprecation.new('0.15', 'Telegram::Bot')
ActiveSupport::Deprecation.new('0.16', 'Telegram::Bot')
end
end

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

@@ -1,10 +0,0 @@
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