1
0
mirror of https://github.com/cmur2/dyndnsd.git synced 2024-12-22 00:54:22 +01:00

gems: include rubocop-rspec and fix linting

This commit is contained in:
cn 2020-12-25 18:05:41 +01:00
parent 1c1bcd253a
commit 5444782ead
3 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,6 @@
require:
- rubocop-rake
- rubocop-rspec
AllCops:
TargetRubyVersion: '2.5'
@ -89,3 +90,9 @@ Style/SymbolArray:
Style/TrailingCommaInArrayLiteral:
Enabled: false
RSpec/ExampleLength:
Max: 20
RSpec/MultipleExpectations:
Max: 20

View File

@ -42,5 +42,6 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rspec'
s.add_development_dependency 'rubocop', '~> 1.6.1'
s.add_development_dependency 'rubocop-rake', '~> 0.5.1'
s.add_development_dependency 'rubocop-rspec', '~> 2.1.0'
s.add_development_dependency 'solargraph', '~> 0.40.0'
end

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative 'spec_helper'
require_relative '../spec_helper'
describe Dyndnsd::Daemon do
include Rack::Test::Methods