зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-07 19:35:52 +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
|
||||
|
||||
require 'pathname'
|
||||
require 'pry'
|
||||
require 'rspec/its'
|
||||
@@ -10,7 +12,7 @@ elsif ENV.key?('COV')
|
||||
SimpleCov.start
|
||||
end
|
||||
|
||||
GEM_ROOT = Pathname.new File.expand_path('../..', __FILE__)
|
||||
GEM_ROOT = Pathname.new File.expand_path('..', __dir__)
|
||||
|
||||
$LOAD_PATH.unshift GEM_ROOT.join('lib')
|
||||
require 'telegram/bot'
|
||||
@@ -18,7 +20,7 @@ require 'telegram/bot/updates_controller/rspec_helpers'
|
||||
require 'telegram/bot/types'
|
||||
require 'active_support/json'
|
||||
|
||||
Dir[GEM_ROOT.join('spec/support/**/*.rb')].each { |f| require f }
|
||||
Dir[GEM_ROOT.join('spec/support/**/*.rb')].sort.each { |f| require f }
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.expect_with :rspec do |expectations|
|
||||
|
||||
Ссылка в новой задаче
Block a user