<commit_before>shared_examples 'when a home path is define' do
  shared_examples 'expects the custom fixture on the page' do
    it 'applies a stored fixture in the directory defined in the home path' do
      expect(cat_owner).to have_content('<NAME>')
    end
  end

  context 'when no custom fixture is applied' do
    before do
      actor_with_home_path.public_send(action_method)
    end

    it 'applies a stored fixture in the directory defined in the home path' do
      expect(cat_owner).to have_content('<NAME>')
    end
  end

  context 'when a custom fixture is applied' do
    before do
      actor_with_home_path.public_send(action_method) do
        fixtures ['~/bran_stark']
      end
    end

    it_behaves_like 'expects the custom fixture on the page'
  end

  context 'when a home path is used within the path helper method' do
    before do
      actor_with_home_path.public_send(action_method) do
        path '~/', ['bran_stark']
      end
    end

    it_behaves_like 'expects the custom fixture on the page'
  end

  context 'when a home path is directly defined in the block for applying fixtures' do
    before do
      actor_without_home_path.public_send(action_method) do
        home_path 'custom'

        fixtures ['~/bran_stark']
      end
    end

    it_behaves_like 'expects the custom fixture on the page'
  end

  context 'when a custom fixture which stored in the parent directory of the home path is applied' do
    before do
      actor_without_home_path.public_send(action_method) do
        home_path 'custom'

        fixtures ['~/../arya_stark']
      end
    end

    it 'applies a stored fixture in the parent directory of the home path' do
      expect(cat_owner).to have_content('<NAME>')
    end
  end

  context 'when a home path is used to point to a cessette in a sub directory', mytest: true do
    before do
      actor_without_home_path.public_send(action_method) do
        home_path 'custom'

        path '~/', ['subpath/sansa_stark']
      end
    end

    it 'applies a stored fixture in the sub directory of the home path' do
      expect(cat_owner).to have_content('Sansa Stark')
    end
  end
end<commit_msg>corrected typo in the test description<commit_after>shared_examples 'when a home path is define' do
  shared_examples 'expects the custom fixture on the page' do
    it 'applies a stored fixture in the directory defined in the home path' do
      expect(cat_owner).to have_content('Bran Stark')
    end
  end

  context 'when no custom fixture is applied' do
    before do
      actor_with_home_path.public_send(action_method)
    end

    it 'applies a stored fixture in the directory defined in the home path' do
      expect(cat_owner).to have_content('<NAME>')
    end
  end

  context 'when a custom fixture is applied' do
    before do
      actor_with_home_path.public_send(action_method) do
        fixtures ['~/bran_stark']
      end
    end

    it_behaves_like 'expects the custom fixture on the page'
  end

  context 'when a home path is used within the path helper method' do
    before do
      actor_with_home_path.public_send(action_method) do
        path '~/', ['bran_stark']
      end
    end

    it_behaves_like 'expects the custom fixture on the page'
  end

  context 'when a home path is directly defined in the block for applying fixtures' do
    before do
      actor_without_home_path.public_send(action_method) do
        home_path 'custom'

        fixtures ['~/bran_stark']
      end
    end

    it_behaves_like 'expects the custom fixture on the page'
  end

  context 'when a custom fixture which stored in the parent directory of the home path is applied' do
    before do
      actor_without_home_path.public_send(action_method) do
        home_path 'custom'

        fixtures ['~/../arya_stark']
      end
    end

    it 'applies a stored fixture in the parent directory of the home path' do
      expect(cat_owner).to have_content('<NAME>')
    end
  end

  context 'when a home path is used to point to a cassette in a sub directory' do
    before do
      actor_without_home_path.public_send(action_method) do
        home_path 'custom'

        path '~/', ['subpath/sansa_stark']
      end
    end

    it 'applies a stored fixture in the sub directory of the home path' do
      expect(cat_owner).to have_content('Sansa Stark')
    end
  end
end
{'fraction_non_alphanumeric': 0.06007796376977757, 'fraction_numerical': 0.0, 'mean_word_length': 2.8911685994647636, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4143187', 'n_tokens_mistral': 1335, 'n_tokens_neox': 1274, 'n_words': 501}