Commit ed0f26c2 authored by Phil Hughes's avatar Phil Hughes

Escapes branch names before appending to dom

parent d2362e2e
......@@ -74,7 +74,7 @@ class @Project
isActiveClass = if ref is selected then 'is-active' else ''
"<li>
<a href='#' data-ref='#{ref}' class='#{isActiveClass}'>
<a href='#' data-ref='#{escape(ref)}' class='#{isActiveClass}'>
#{ref}
</a>
</li>"
......
......@@ -306,7 +306,7 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps
end
step "I see the ref 'test' has been selected" do
expect(page).to have_selector '.dropdown-toggle', text: "'test'"
expect(page).to have_selector '.dropdown-toggle-text', text: "'test'"
end
step "I visit the 'test' tree" do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment