summaryrefslogtreecommitdiff
path: root/spec/helpers/diff_helper_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers/diff_helper_spec.rb')
-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