From 863e838533ee1de5e7bd6d7e86a6b0f3e88ed6cd Mon Sep 17 00:00:00 2001 From: Max Melentiev Date: Sun, 6 Dec 2020 18:35:10 +0300 Subject: [PATCH] Remove deprecated rspec/integration --- lib/telegram/bot.rb | 4 ++-- lib/telegram/bot/rspec/integration.rb | 10 ---------- 2 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 lib/telegram/bot/rspec/integration.rb diff --git a/lib/telegram/bot.rb b/lib/telegram/bot.rb index 50d4e3b..799cefe 100644 --- a/lib/telegram/bot.rb +++ b/lib/telegram/bot.rb @@ -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 diff --git a/lib/telegram/bot/rspec/integration.rb b/lib/telegram/bot/rspec/integration.rb deleted file mode 100644 index e28ca80..0000000 --- a/lib/telegram/bot/rspec/integration.rb +++ /dev/null @@ -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