зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-08-28 15:26:18 +03:00
Remove deprecated rspec/integration
Этот коммит содержится в:
@@ -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
|
||||
Ссылка в новой задаче
Block a user