Commit 3babc959 authored by Connor Shea's avatar Connor Shea

Fix tests.

parent 0bfef4bd
...@@ -19,7 +19,7 @@ class Projects::BranchesController < Projects::ApplicationController ...@@ -19,7 +19,7 @@ class Projects::BranchesController < Projects::ApplicationController
respond_to do |format| respond_to do |format|
format.html format.html
format.json do format.json do
render json: @repository.branch_names.to_json render json: @repository.branch_names
end end
end end
end end
......
...@@ -20,7 +20,7 @@ describe 'Branches', feature: true do ...@@ -20,7 +20,7 @@ describe 'Branches', feature: true do
describe 'Find branches' do describe 'Find branches' do
it 'shows filtered branches', js: true do it 'shows filtered branches', js: true do
visit namespace_project_branches_path(project.namespace, project, project.id) visit namespace_project_branches_path(project.namespace, project)
fill_in 'branch-search', with: 'fix' fill_in 'branch-search', with: 'fix'
find('#branch-search').native.send_keys(:enter) find('#branch-search').native.send_keys(:enter)
......
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