Fix tests.

This commit is contained in:
Connor Shea 2016-08-02 10:53:10 -06:00
parent 0bfef4bd83
commit 3babc959db
No known key found for this signature in database
GPG key ID: 1993299A3C9BE6CF
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ class Projects::BranchesController < Projects::ApplicationController
respond_to do |format|
format.html
format.json do
render json: @repository.branch_names.to_json
render json: @repository.branch_names
end
end
end

View file

@ -20,7 +20,7 @@ describe 'Branches', feature: true do
describe 'Find branches' 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'
find('#branch-search').native.send_keys(:enter)