diff options
author | Shinya Maeda <shinya@gitlab.com> | 2019-01-08 17:44:27 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2019-01-11 13:26:09 +0900 |
commit | 9b823af4fd2b937c1e769b4ad2abd4f92aca35c9 (patch) | |
tree | e742d8bee253e980fc6cc0eb86765456b9b97d14 /spec/views | |
parent | 89c4d2ae623dbd666e2eaa58812323b81e02b4ea (diff) | |
download | gitlab-ce-9b823af4fd2b937c1e769b4ad2abd4f92aca35c9.tar.gz |
Remove releases_page feature flag
We introduced releases_page feature flag.
Given this feature is deemed stable, we should remove
this flag before 19th.
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb b/spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb index ec20c346234..2852aa380b2 100644 --- a/spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb +++ b/spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb @@ -51,28 +51,10 @@ describe 'layouts/nav/sidebar/_project' do end describe 'releases entry' do - describe 'when releases feature flag is disabled' do - before do - stub_feature_flags(releases_page: false) - end - - it 'does not render releases link' do - render - - expect(rendered).not_to have_link('Releases', href: project_releases_path(project)) - end - end - - describe 'when releases feature flags is enabled' do - before do - stub_feature_flags(releases_page: true) - end - - it 'renders releases link' do - render + it 'renders releases link' do + render - expect(rendered).to have_link('Releases', href: project_releases_path(project)) - end + expect(rendered).to have_link('Releases', href: project_releases_path(project)) end end end |