DEV: fix test (missed a reference to master)

This commit is contained in:
Michael Brown 2021-07-19 12:41:48 -04:00 committed by Michael Brown
parent aa12d12c0b
commit 76a11e6dc9
2 changed files with 2 additions and 2 deletions

View File

@ -650,7 +650,7 @@
<span class="dropdown-caret"></span>
</summary>
<details-menu class="SelectMenu SelectMenu--hasFilter" src="/discourse/discourse/refs/master/spec/fixtures?source_action=disambiguate&amp;source_controller=files" preload>
<details-menu class="SelectMenu SelectMenu--hasFilter" src="/discourse/discourse/refs/main/spec/fixtures?source_action=disambiguate&amp;source_controller=files" preload>
<div class="SelectMenu-modal">
<include-fragment class="SelectMenu-loading" aria-label="Menu is loading">
<svg class="octicon octicon-octoface anim-pulse" height="32" viewBox="0 0 24 24" version="1.1" width="32" aria-hidden="true"><path d="M7.75 11c-.69 0-1.25.56-1.25 1.25v1.5a1.25 1.25 0 102.5 0v-1.5C9 11.56 8.44 11 7.75 11zm1.27 4.5a.469.469 0 01.48-.5h5a.47.47 0 01.48.5c-.116 1.316-.759 2.5-2.98 2.5s-2.864-1.184-2.98-2.5zm7.23-4.5c-.69 0-1.25.56-1.25 1.25v1.5a1.25 1.25 0 102.5 0v-1.5c0-.69-.56-1.25-1.25-1.25z"></path><path fill-rule="evenodd" d="M21.255 3.82a1.725 1.725 0 00-2.141-1.195c-.557.16-1.406.44-2.264.866-.78.386-1.647.93-2.293 1.677A18.442 18.442 0 0012 5c-.93 0-1.784.059-2.569.17-.645-.74-1.505-1.28-2.28-1.664a13.876 13.876 0 00-2.265-.866 1.725 1.725 0 00-2.141 1.196 23.645 23.645 0 00-.69 3.292c-.125.97-.191 2.07-.066 3.112C1.254 11.882 1 13.734 1 15.527 1 19.915 3.13 23 12 23c8.87 0 11-3.053 11-7.473 0-1.794-.255-3.647-.99-5.29.127-1.046.06-2.15-.066-3.125a23.652 23.652 0 00-.689-3.292zM20.5 14c.5 3.5-1.5 6.5-8.5 6.5s-9-3-8.5-6.5c.583-4 3-6 8.5-6s7.928 2 8.5 6z"></path></svg>

View File

@ -16,7 +16,7 @@ describe Onebox::Engine::GithubFolderOnebox do
describe "#to_html" do
it "includes link to folder with truncated display path" do
expect(html).to include("<a href=\"https://github.com/discourse/discourse/tree/main/spec/fixtures\" target=\"_blank\" rel=\"noopener\">master/spec/fixtures</a>")
expect(html).to include('<a href="https://github.com/discourse/discourse/tree/main/spec/fixtures" target="_blank" rel="noopener">main/spec/fixtures</a>')
end
it "includes repository name" do