1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-03 09:46:17 +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 удалений

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

@@ -35,6 +35,7 @@ module Telegram
end
def initialize(token = nil, username = nil, **options)
@token = token
@username = username || options[:username] || token
reset
end

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

@@ -14,7 +14,7 @@ RSpec.shared_context 'telegram/bot/integration' do
}
end
let(:clear_session?) { described_class.respond_to?(:session_store) }
before { described_class.session_store.clear if clear_session? }
before { described_class.session_store.try!(:clear) if clear_session? }
include Telegram::Bot::RSpec::ClientMatchers