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

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

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