Prepare for rspec tests

This commit is contained in:
Sven Weidauer 2022-05-29 11:14:54 +02:00
parent 9fd78ac2e1
commit 29f580b431
3 changed files with 19 additions and 0 deletions

View file

@ -11,6 +11,7 @@ GEM
code-scanning-rubocop (0.6.1)
rubocop (~> 1.0)
colorize (0.8.1)
diff-lcs (1.5.0)
parallel (1.22.1)
parser (3.1.2.0)
ast (~> 2.4.1)
@ -18,6 +19,19 @@ GEM
rake (13.0.6)
regexp_parser (2.4.0)
rexml (3.2.5)
rspec (3.11.0)
rspec-core (~> 3.11.0)
rspec-expectations (~> 3.11.0)
rspec-mocks (~> 3.11.0)
rspec-core (3.11.0)
rspec-support (~> 3.11.0)
rspec-expectations (3.11.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-mocks (3.11.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-support (3.11.0)
rubocop (1.29.1)
parallel (~> 1.10)
parser (>= 3.1.0.0)
@ -41,6 +55,7 @@ DEPENDENCIES
code-scanning-rubocop
format-staged!
rake (~> 13.0)
rspec
rubocop (~> 1.29)
rubocop-rake (~> 0.6)

View file

@ -21,3 +21,6 @@ RuboCop::RakeTask.new(:lint_github) do |t|
t.formatters << 'CodeScanning::SarifFormatter'
t.options << '-o' << 'rubocop.sarif'
end
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)

View file

@ -22,6 +22,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rake', '~> 13.0'
s.add_development_dependency 'rubocop', '~> 1.29'
s.add_development_dependency 'rubocop-rake', '~> 0.6'
s.add_development_dependency 'rspec'
s.metadata = {
'rubygems_mfa_required' => 'true'