1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-04 10:15:50 +03:00

fixed controller's callbacks for rails5

Этот коммит содержится в:
Max Melentiev
2016-06-02 20:30:35 +03:00
родитель 93ff9851f6
Коммит 43b519c5e8
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@@ -225,12 +225,12 @@ RSpec.describe Telegram::Bot::UpdatesController do
it { should change(controller, :acted).to true }
its(:call) { should eq [nil, nil, args] }
context 'when callback returns false' do
context 'when callback halts chain' do
before do
controller_class.prepend(Module.new do
def hook
super
false
ActiveSupport::VERSION::MAJOR >= 5 ? throw(:abort) : false
end
end)
end