зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-05 18:45:51 +03:00
Integration test with rails app and two bots
Этот коммит содержится в:
@@ -46,7 +46,7 @@ RSpec.describe Telegram::Bot::ClientStub do
|
||||
|
||||
context 'when username and token are given' do
|
||||
let(:args) { %w(token superbot) }
|
||||
its(:token) { should eq nil }
|
||||
its(:token) { should eq args[0] }
|
||||
its(:username) { should eq args[1] }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -72,6 +72,7 @@ RSpec.describe Telegram::Bot::ConfigMethods do
|
||||
|
||||
context 'when not configured' do
|
||||
let(:registry) { Object.new.tap { |x| x.extend described_class } }
|
||||
before { hide_const('Rails') }
|
||||
it { should eq({}) }
|
||||
|
||||
context 'in rails environment' do
|
||||
|
||||
Ссылка в новой задаче
Block a user