diff options
author | Alex Connor <alex@gconnor.com> | 2015-02-08 17:12:44 -0600 |
---|---|---|
committer | Jeroen van Baarsen <jeroenvanbaarsen@gmail.com> | 2015-05-21 09:25:07 +0200 |
commit | 3c892f3554dd0a7d03c1961a7e4504f03a17c3b5 (patch) | |
tree | ed2332de9293a21e0cfb561dd1ec1c5464eda666 /spec | |
parent | 7758a566c9d12dbb7728ad6273cafe140a9e8eb8 (diff) | |
download | gitlab-ce-3c892f3554dd0a7d03c1961a7e4504f03a17c3b5.tar.gz |
Disabled expansion of top/bottom blobs for new file diffs
Diffstat (limited to 'spec')
-rw-r--r-- | spec/helpers/diff_helper_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/helpers/diff_helper_spec.rb b/spec/helpers/diff_helper_spec.rb index dd4c1d645e2..e0be2df0e5e 100644 --- a/spec/helpers/diff_helper_spec.rb +++ b/spec/helpers/diff_helper_spec.rb @@ -106,6 +106,16 @@ describe DiffHelper do end end + describe 'unfold_class' do + it 'returns empty on false' do + expect(unfold_class(false)).to eq('') + end + + it 'returns a class on true' do + expect(unfold_class(true)).to eq('unfold js-unfold') + end + end + describe 'diff_line_content' do it 'should return non breaking space when line is empty' do |