Escapes branch names before appending to dom

This commit is contained in:
Phil Hughes 2016-06-08 12:53:40 +01:00
parent d2362e2edf
commit ed0f26c223
2 changed files with 2 additions and 2 deletions

View file

@ -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>"

View file

@ -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