diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-11 06:09:15 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-11 06:09:15 +0000 |
commit | 7cd0959043b069068738dcf88594b2e6dcf6fe7e (patch) | |
tree | 81585b68e39a4d9ce6e209e3ee04d73f1b0c89e6 /spec/helpers/blob_helper_spec.rb | |
parent | b6e23edd65a3fb7295c0097016ca0bdc93f437c5 (diff) | |
download | gitlab-ce-7cd0959043b069068738dcf88594b2e6dcf6fe7e.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers/blob_helper_spec.rb')
-rw-r--r-- | spec/helpers/blob_helper_spec.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/spec/helpers/blob_helper_spec.rb b/spec/helpers/blob_helper_spec.rb index 7d5b4e1c3f0..fe975aa7723 100644 --- a/spec/helpers/blob_helper_spec.rb +++ b/spec/helpers/blob_helper_spec.rb @@ -53,20 +53,12 @@ RSpec.describe BlobHelper do end it 'returns a link with the proper route' do - stub_feature_flags(web_ide_default: false) link = helper.edit_blob_button(project, 'master', 'README.md') expect(Capybara.string(link).find_link('Edit')[:href]).to eq("/#{project.full_path}/-/edit/master/README.md") end - it 'returns a link with a Web IDE route' do - link = helper.edit_blob_button(project, 'master', 'README.md') - - expect(Capybara.string(link).find_link('Edit')[:href]).to eq("/-/ide/project/#{project.full_path}/edit/master/-/README.md") - end - it 'returns a link with the passed link_opts on the expected route' do - stub_feature_flags(web_ide_default: false) link = helper.edit_blob_button(project, 'master', 'README.md', link_opts: { mr_id: 10 }) expect(Capybara.string(link).find_link('Edit')[:href]).to eq("/#{project.full_path}/-/edit/master/README.md?mr_id=10") |