summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAlex Connor <alex@gconnor.com>2015-02-08 17:12:44 -0600
committerJeroen van Baarsen <jeroenvanbaarsen@gmail.com>2015-05-21 09:25:07 +0200
commit3c892f3554dd0a7d03c1961a7e4504f03a17c3b5 (patch)
treeed2332de9293a21e0cfb561dd1ec1c5464eda666 /spec
parent7758a566c9d12dbb7728ad6273cafe140a9e8eb8 (diff)
downloadgitlab-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.rb10
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