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 ...@@ -74,7 +74,7 @@ class @Project
isActiveClass = if ref is selected then 'is-active' else '' isActiveClass = if ref is selected then 'is-active' else ''
"<li> "<li>
<a href='#' data-ref='#{ref}' class='#{isActiveClass}'> <a href='#' data-ref='#{escape(ref)}' class='#{isActiveClass}'>
#{ref} #{ref}
</a> </a>
</li>" </li>"
......
...@@ -306,7 +306,7 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps ...@@ -306,7 +306,7 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps
end end
step "I see the ref 'test' has been selected" do 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 end
step "I visit the 'test' tree" do 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