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

Rails 5.1 deep symbolized secrets support

Fixes #26
Этот коммит содержится в:
Max Melentiev
2017-04-22 12:02:06 +03:00
родитель cf9bd87cf2
Коммит 2d5ca981ce
5 изменённых файлов: 18 добавлений и 5 удалений

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

@@ -87,6 +87,12 @@ RSpec.describe Telegram::Bot::ConfigMethods do
end
it { should include default: config[:bot] }
it { should include config[:bots] }
context 'on rails >5.1 (deep symbolized keys)' do
let(:secrets) { {telegram: config.deep_symbolize_keys} }
it { should include default: config[:bot] }
it { should include config[:bots] }
end
end
end
end