From 29f580b4312736334f2a63e01d72e15019ab2bba Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Sun, 29 May 2022 11:14:54 +0200 Subject: [PATCH] Prepare for rspec tests --- Gemfile.lock | 15 +++++++++++++++ Rakefile | 3 +++ format-staged.gemspec | 1 + 3 files changed, 19 insertions(+) diff --git a/Gemfile.lock b/Gemfile.lock index 630522e..1576cac 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) diff --git a/Rakefile b/Rakefile index 5f6bced..78e0d48 100644 --- a/Rakefile +++ b/Rakefile @@ -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) diff --git a/format-staged.gemspec b/format-staged.gemspec index 6711751..e48cb9e 100644 --- a/format-staged.gemspec +++ b/format-staged.gemspec @@ -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'