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