зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-07 11:25:52 +03:00
Remove deprecated rspec/integration
Этот коммит содержится в:
@@ -14,10 +14,10 @@ module Telegram
|
|||||||
|
|
||||||
module_function
|
module_function
|
||||||
|
|
||||||
def deprecation_0_15
|
def deprecation_0_16
|
||||||
@deprecation ||= begin
|
@deprecation ||= begin
|
||||||
require 'active_support/deprecation'
|
require 'active_support/deprecation'
|
||||||
ActiveSupport::Deprecation.new('0.15', 'Telegram::Bot')
|
ActiveSupport::Deprecation.new('0.16', 'Telegram::Bot')
|
||||||
end
|
end
|
||||||
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