Escapes branch names before appending to dom
This commit is contained in:
parent
d2362e2edf
commit
ed0f26c223
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue