зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-07 03:25:49 +03:00
Update rubopcop (#227)
* Update rubopcop [WIP] * Further rubocop fixes * Fix rubocop-rails cops * Fix spec * Disable rubocop suggestions * Run rubocop in github actions rather than in codeclimate
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
7bcb0caded
Коммит
57b17f068c
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
RSpec.describe Telegram::Bot::Client do
|
||||
let(:instance) { described_class.new 'token' }
|
||||
let(:token) { 'token' }
|
||||
@@ -73,8 +75,8 @@ RSpec.describe Telegram::Bot::Client do
|
||||
|
||||
describe '.prepare_async_args' do
|
||||
subject { described_class.prepare_async_args(*input) }
|
||||
let(:input) { [:action, a: 1, b: :sym, c: [:other], 'd' => 'str'] }
|
||||
it { should eq ['action', a: 1, b: 'sym', c: '["other"]', 'd' => 'str'] }
|
||||
let(:input) { [:action, {a: 1, b: :sym, c: [:other], 'd' => 'str'}] }
|
||||
it { should eq ['action', {a: 1, b: 'sym', c: '["other"]', 'd' => 'str'}] }
|
||||
end
|
||||
|
||||
describe '.new' do
|
||||
|
||||
Ссылка в новой задаче
Block a user