<commit_before>describe Hyperloop::View::Registry do
  before :each do
    @registry = Hyperloop.registry.new("spec/fixtures/partials/")
  end

  describe "#find_template_view" do
    it "finds the root view" do
      expect(@registry.find_template_view("/").name).to eql("index")
    end

    it "finds a root view in a subdirectory" do
      expect(@registry.find_template_view("/subdir").name).to eql("index")
    end

    it "finds a non-root view in a subdirectory" do
      expect(@registry.find_template_view("/subdir/nonroot").name).to eql("nonroot")
    end

    it "doesn't find partials" do
      expect(@registry.find_template_view("/subdir/partial")).to be_nil
      expect(@registry.find_template_view("/subdir/_partial")).to be_nil
    end

    it "doesn't find layouts" do
      expect(@registry.find_template_view("/subdir/layouts/application")).to be_nil
    end
  end
<commit_msg>Fix typo in registry spec<commit_after>describe Hyperloop::View::Registry do
  before :each do
    @registry = Hyperloop::View::Registry.new("spec/fixtures/partials/")
  end

  describe "#find_template_view" do
    it "finds the root view" do
      expect(@registry.find_template_view("/").name).to eql("index")
    end

    it "finds a root view in a subdirectory" do
      expect(@registry.find_template_view("/subdir").name).to eql("index")
    end

    it "finds a non-root view in a subdirectory" do
      expect(@registry.find_template_view("/subdir/nonroot").name).to eql("nonroot")
    end

    it "doesn't find partials" do
      expect(@registry.find_template_view("/subdir/partial")).to be_nil
      expect(@registry.find_template_view("/subdir/_partial")).to be_nil
    end

    it "doesn't find layouts" do
      expect(@registry.find_template_view("/subdir/layouts/application")).to be_nil
    end
  end

{'fraction_non_alphanumeric': 0.1282333516785911, 'fraction_numerical': 0.0, 'mean_word_length': 3.734375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1849574', 'n_tokens_mistral': 594, 'n_tokens_neox': 567, 'n_words': 132}