зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-03 17:55:52 +03:00
Fix specs for rails 4
Этот коммит содержится в:
@@ -50,7 +50,12 @@ RSpec.describe Telegram::Bot::UpdatesController::Instrumentation do
|
||||
x.before_action :halter_method
|
||||
|
||||
def halter_method
|
||||
throw :abort
|
||||
require 'active_support/version'
|
||||
if ActiveSupport::VERSION::MAJOR >= 5
|
||||
throw :abort
|
||||
else
|
||||
false
|
||||
end
|
||||
end
|
||||
|
||||
self
|
||||
|
||||
Ссылка в новой задаче
Block a user