# frozen_string_literal: true

require_relative "../spec_helper"

describe "empty_root plugin" do
  it "makes root match on emtpy path" do
    app(:empty_root) do |r|
      r.root{"root"}
      "notroot"
    end

    body.must_equal 'root'
    body("").must_equal 'root'
    body("a").must_equal 'notroot'
  end
end
