From 18240ebef7f4d5274f26fe268c46ac654827a55e Mon Sep 17 00:00:00 2001 From: Andrey Marchenko Date: Tue, 30 Jan 2024 10:46:18 +0100 Subject: [PATCH] move git fixture to contexts --- spec/spec_helper.rb | 2 +- spec/support/{git_helpers.rb => contexts/git_fixture.rb} | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) rename spec/support/{git_helpers.rb => contexts/git_fixture.rb} (64%) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a33bce44..024a6072 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -14,13 +14,13 @@ require_relative "support/tracer_helpers" require_relative "support/span_helpers" require_relative "support/platform_helpers" -require_relative "support/git_helpers" require_relative "support/provider_test_helpers" require_relative "support/test_visibility_event_serialized" # shared contexts require_relative "support/contexts/ci_mode" require_relative "support/contexts/concurrency_test" +require_relative "support/contexts/git_fixture" require "rspec/collection_matchers" require "climate_control" diff --git a/spec/support/git_helpers.rb b/spec/support/contexts/git_fixture.rb similarity index 64% rename from spec/support/git_helpers.rb rename to spec/support/contexts/git_fixture.rb index 70579e9d..78c50bb8 100644 --- a/spec/support/git_helpers.rb +++ b/spec/support/contexts/git_fixture.rb @@ -1,4 +1,7 @@ -FIXTURE_DIR = "#{File.dirname(__FILE__)}/fixtures/" # rubocop:disable all +# Git fixture shared context sets up an example git repository in the ../fixture directory. +# Used to test git integration. + +FIXTURE_DIR = "#{File.dirname(__FILE__)}/../fixtures/" # rubocop:disable all shared_context "with git fixture" do |git_fixture| let(:environment_variables) do