Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/views/shared/_global_alert.html.haml_spec.rb')
-rw-r--r--spec/views/shared/_global_alert.html.haml_spec.rb29
1 files changed, 0 insertions, 29 deletions
diff --git a/spec/views/shared/_global_alert.html.haml_spec.rb b/spec/views/shared/_global_alert.html.haml_spec.rb
index 84198cbb75e..a400d5b39b0 100644
--- a/spec/views/shared/_global_alert.html.haml_spec.rb
+++ b/spec/views/shared/_global_alert.html.haml_spec.rb
@@ -43,33 +43,4 @@ RSpec.describe 'shared/_global_alert.html.haml' do
expect(rendered).not_to have_selector('.gl-dismiss-btn')
end
end
-
- context 'fixed layout' do
- before do
- allow(view).to receive(:fluid_layout).and_return(false)
- end
-
- it 'adds container classes' do
- render
-
- expect(rendered).to have_selector('.container-fluid.container-limited')
- end
-
- it 'does not add container classes if is_contained is true' do
- render partial: 'shared/global_alert', locals: { is_contained: true }
-
- expect(rendered).not_to have_selector('.container-fluid.container-limited')
- end
- end
-
- context 'fluid layout' do
- before do
- allow(view).to receive(:fluid_layout).and_return(true)
- render
- end
-
- it 'does not add container classes' do
- expect(rendered).not_to have_selector('.container-fluid.container-limited')
- end
- end
end