зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-04 02:05:52 +03:00
Use bang-methods as actions for commands
Этот коммит содержится в:
@@ -6,7 +6,7 @@ RSpec.describe Telegram::Bot::UpdatesController::Instrumentation do
|
||||
|
||||
let(:controller_class) do
|
||||
Class.new(Telegram::Bot::UpdatesController) do
|
||||
def start(*)
|
||||
def start!(*)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -72,7 +72,7 @@ RSpec.describe Telegram::Bot::UpdatesController::Instrumentation do
|
||||
|
||||
describe '#respond_with' do
|
||||
before do
|
||||
def controller.start(*)
|
||||
def controller.start!(*)
|
||||
respond_with :message, text: 'sample response'
|
||||
end
|
||||
end
|
||||
|
||||
Ссылка в новой задаче
Block a user