updates local schema
This commit is contained in:
parent
81e57e783e
commit
64232c71a4
|
@ -630,6 +630,7 @@ ActiveRecord::Schema.define(version: 20160716115710) do
|
|||
t.datetime "deleted_at"
|
||||
t.string "in_progress_merge_commit_sha"
|
||||
end
|
||||
|
||||
add_index "merge_requests", ["assignee_id"], name: "index_merge_requests_on_assignee_id", using: :btree
|
||||
add_index "merge_requests", ["author_id"], name: "index_merge_requests_on_author_id", using: :btree
|
||||
add_index "merge_requests", ["created_at", "id"], name: "index_merge_requests_on_created_at_and_id", using: :btree
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'Branches', feature: true do
|
||||
let(:project) { create(:project) }
|
||||
let(:repository) { project.repository }
|
||||
|
||||
before do
|
||||
login_as :user
|
||||
project.team << [@user, :developer]
|
||||
end
|
||||
|
||||
describe 'Initial branches page' do
|
||||
it 'shows all the branches' do
|
||||
visit namespace_project_branches_path(project.namespace, project)
|
||||
|
||||
repository.branches { |branch| expect(page).to have_content("#{branch.name}") }
|
||||
expect(page).to have_content("Protected branches can be managed in project settings")
|
||||
end
|
||||
end
|
||||
|
||||
describe 'Find branches' do
|
||||
it 'shows filtered branches', js: true do
|
||||
visit namespace_project_branches_path(project.namespace, project, project.id)
|
||||
|
||||
fill_in 'branch-search', with: 'fix'
|
||||
find('#branch-search').native.send_keys(:enter)
|
||||
|
||||
expect(page).to have_content('fix')
|
||||
expect(find('.all-branches')).to have_selector('li', count: 1)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue