summaryrefslogtreecommitdiff
path: root/spec/views
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-06-23 10:45:08 +0000
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-06-23 10:45:08 +0000
commit9fca7b437930a5fa88ec1ae7acd41a7a9a3f18bb (patch)
tree78d9c1b19b9dd664eedb436dc5384f18e2ff2ba5 /spec/views
parent473668b435600c32e8307f9ba3b6367cceda2def (diff)
downloadgitlab-ce-9fca7b437930a5fa88ec1ae7acd41a7a9a3f18bb.tar.gz
Limit the width of commit & snippet comment sections
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/projects/commit/show.html.haml_spec.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/views/projects/commit/show.html.haml_spec.rb b/spec/views/projects/commit/show.html.haml_spec.rb
index 122075cc10e..92b4aa12d49 100644
--- a/spec/views/projects/commit/show.html.haml_spec.rb
+++ b/spec/views/projects/commit/show.html.haml_spec.rb
@@ -21,24 +21,26 @@ describe 'projects/commit/show.html.haml', :view do
context 'inline diff view' do
before do
allow(view).to receive(:diff_view).and_return(:inline)
+ allow(view).to receive(:diff_view).and_return(:inline)
render
end
- it 'keeps container-limited' do
- expect(rendered).not_to have_selector('.limit-container-width')
+ it 'has limited width' do
+ expect(rendered).to have_selector('.limit-container-width')
end
end
context 'parallel diff view' do
before do
allow(view).to receive(:diff_view).and_return(:parallel)
+ allow(view).to receive(:fluid_layout).and_return(true)
render
end
it 'spans full width' do
- expect(rendered).to have_selector('.limit-container-width')
+ expect(rendered).not_to have_selector('.limit-container-width')
end
end
end