spec/unit/fetchers/file_fetcher_spec.rb [16:45]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    end

    subject { described_class.new(manifest_entry, project_dir, build_dir) }

    describe "#fetch_required?" do
      context "when the SHAs match" do
        before do
          allow(subject).to receive(:target_shasum).and_return("abcd1234")
          allow(subject).to receive(:destination_shasum).and_return("abcd1234")
        end

        it "returns false" do
          expect(subject.fetch_required?).to be(false)
        end
      end

      context "when the SHAs do not match" do
        before do
          allow(subject).to receive(:target_shasum).and_return("abcd1234")
          allow(subject).to receive(:destination_shasum).and_return("efgh5678")
        end

        it "returns true" do
          expect(subject.fetch_required?).to be_truthy
        end
      end
    end

    describe "#version_guid" do
      it "returns the path" do
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



spec/unit/fetchers/path_fetcher_spec.rb [15:44]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    end

    subject { described_class.new(manifest_entry, project_dir, build_dir) }

    describe "#fetch_required?" do
      context "when the SHAs match" do
        before do
          allow(subject).to receive(:target_shasum).and_return("abcd1234")
          allow(subject).to receive(:destination_shasum).and_return("abcd1234")
        end

        it "returns false" do
          expect(subject.fetch_required?).to be(false)
        end
      end

      context "when the SHAs do not match" do
        before do
          allow(subject).to receive(:target_shasum).and_return("abcd1234")
          allow(subject).to receive(:destination_shasum).and_return("efgh5678")
        end

        it "returns true" do
          expect(subject.fetch_required?).to be_truthy
        end
      end
    end

    describe "#version_guid" do
      it "returns the path" do
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



