From 01a25ad12c5a3eabe16a8b6b758ffb0928d57434 Mon Sep 17 00:00:00 2001 From: Artur Trzop Date: Wed, 26 Jun 2024 21:03:47 +0200 Subject: [PATCH 1/2] Create time_tracker_spec.rb add spec file that explicitly requires spec_helper --- spec/time_tracker_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 spec/time_tracker_spec.rb diff --git a/spec/time_tracker_spec.rb b/spec/time_tracker_spec.rb new file mode 100644 index 0000000..b50661d --- /dev/null +++ b/spec/time_tracker_spec.rb @@ -0,0 +1,9 @@ +# Needed to reproduce the issue: +# https://github.com/KnapsackPro/knapsack_pro-ruby/pull/265 +require 'spec_helper' + +describe 'Test Time Tracker' do + it do + expect(true).to be true + end +end From 3fb50800ec8ee4b923769036b187a6550058f457 Mon Sep 17 00:00:00 2001 From: Artur Trzop Date: Thu, 27 Jun 2024 14:02:55 +0200 Subject: [PATCH 2/2] Update description of the spec --- spec/time_tracker_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/time_tracker_spec.rb b/spec/time_tracker_spec.rb index b50661d..31b859b 100644 --- a/spec/time_tracker_spec.rb +++ b/spec/time_tracker_spec.rb @@ -2,7 +2,7 @@ # https://github.com/KnapsackPro/knapsack_pro-ruby/pull/265 require 'spec_helper' -describe 'Test Time Tracker' do +describe "Verify KnapsackPro::Formatters::TimeTracker works for Regular Mode in the knapsack_pro gem when the .rspec file does not exist (it does not load spec_helper by default at RSpec start), but spec_helper is loaded later after this spec is loaded (note there is require 'spec_helper' at the top). This spec must be run as part of the CI pipeline in the knapsack_pro gem" do it do expect(true).to be true end