BigW Consortium Gitlab

edit_mr_spec.rb 558 Bytes
Newer Older
Arinde Eniola committed
1 2
require 'spec_helper'

3
feature 'Edit Merge Request', feature: true do
Arinde Eniola committed
4 5 6 7 8 9 10 11 12 13 14 15
  let(:user) { create(:user) }
  let(:project) { create(:project, :public) }
  let(:merge_request) { create(:merge_request, :with_diffs, source_project: project) }

  before do
    project.team << [user, :master]

    login_as user

    visit edit_namespace_project_merge_request_path(project.namespace, project, merge_request)
  end

16 17 18
  context 'editing a MR' do
    it 'form should have class js-quick-submit' do
      expect(page).to have_selector('.js-quick-submit')
Arinde Eniola committed
19 20
    end
  end
21
end