Commit 810c44ae authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'fix-36308' into 'master'

Remove an unnecessary `let` in spec/features/projects/user_edits_files_spec.rb

Closes #36308

See merge request !13488
parents a3d3e962 e66dcf49
require 'spec_helper' require 'spec_helper'
describe 'User edits files' do describe 'User edits files' do
let(:fork_message) do
"You're not allowed to make changes to this project directly. "\
"A fork of this project has been created that you can make changes in, so you can submit a merge request."
end
let(:project) { create(:project, :repository, name: 'Shop') } let(:project) { create(:project, :repository, name: 'Shop') }
let(:project2) { create(:project, :repository, name: 'Another Project', path: 'another-project') } let(:project2) { create(:project, :repository, name: 'Another Project', path: 'another-project') }
let(:project_tree_path_root_ref) { project_tree_path(project, project.repository.root_ref) } let(:project_tree_path_root_ref) { project_tree_path(project, project.repository.root_ref) }
...@@ -91,7 +87,10 @@ describe 'User edits files' do ...@@ -91,7 +87,10 @@ describe 'User edits files' do
click_link('Fork') click_link('Fork')
expect(page).to have_content(fork_message) expect(page).to have_content(
"You're not allowed to make changes to this project directly. "\
"A fork of this project has been created that you can make changes in, so you can submit a merge request."
)
execute_script("ace.edit('editor').setValue('*.rbca')") execute_script("ace.edit('editor').setValue('*.rbca')")
......
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