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

Integration test with rails app and two bots

Этот коммит содержится в:
Max Melentiev
2017-05-15 22:09:14 +06:00
родитель 9defa42f40
Коммит 2fffdeb475
10 изменённых файлов: 105 добавлений и 11 удалений

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

@@ -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

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

@@ -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