Commit 24c0f0d6 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add feature test for accessing MR created from fork

parent 473ea1e9
require 'spec_helper'
feature 'Merge request created from fork' do
given(:user) { create(:user) }
given(:project) { create(:project, :public) }
given(:fork_project) { create(:project, :public) }
given!(:merge_request) do
create(:forked_project_link, forked_to_project: fork_project,
forked_from_project: project)
create(:merge_request, source_project: fork_project,
target_project: project,
description: 'Test merge request')
end
before do
project.team << [user, :master]
login_as user
visit namespace_project_merge_request_path(project.namespace,
project, merge_request)
end
scenario 'user can access merge request' do
expect(page).to have_content 'Test merge request'
end
end
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