зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-05 02:35:50 +03:00
Integration test with rails app and two bots
Этот коммит содержится в:
8
spec/integration/requests/default_bot_spec.rb
Обычный файл
8
spec/integration/requests/default_bot_spec.rb
Обычный файл
@@ -0,0 +1,8 @@
|
||||
require 'integration_helper'
|
||||
|
||||
RSpec.describe DefaultBotController, :telegram_bot, type: :request do
|
||||
describe '#start' do
|
||||
subject { -> { dispatch_command :start } }
|
||||
it { should respond_with_message 'from default' }
|
||||
end
|
||||
end
|
||||
9
spec/integration/requests/other_bot_spec.rb
Обычный файл
9
spec/integration/requests/other_bot_spec.rb
Обычный файл
@@ -0,0 +1,9 @@
|
||||
require 'integration_helper'
|
||||
|
||||
RSpec.describe OtherBotController, :telegram_bot, type: :request do
|
||||
let(:bot) { Telegram.bots[:other] }
|
||||
describe '#start' do
|
||||
subject { -> { dispatch_command :start } }
|
||||
it { should respond_with_message 'from other' }
|
||||
end
|
||||
end
|
||||
Ссылка в новой задаче
Block a user