summaryrefslogtreecommitdiff
path: root/spec/lib/banzai
diff options
context:
space:
mode:
authorOswaldo Ferreira <oswaldo@gitlab.com>2019-04-04 13:08:34 +0000
committerDouwe Maan <douwe@gitlab.com>2019-04-04 13:08:34 +0000
commite540c0d71e00c4ce031b94cf11ec3de905e87da7 (patch)
treefdd99edfd413a3473fe4a9f72719913decfd9777 /spec/lib/banzai
parent30988aecd9fe8223563d02942666683fb1bd29c0 (diff)
downloadgitlab-ce-e540c0d71e00c4ce031b94cf11ec3de905e87da7.tar.gz
Fixed test specs
- added suggestions to mock data - fixed props to be not required
Diffstat (limited to 'spec/lib/banzai')
-rw-r--r--spec/lib/banzai/suggestions_parser_spec.rb32
1 files changed, 0 insertions, 32 deletions
diff --git a/spec/lib/banzai/suggestions_parser_spec.rb b/spec/lib/banzai/suggestions_parser_spec.rb
deleted file mode 100644
index 79658d710ce..00000000000
--- a/spec/lib/banzai/suggestions_parser_spec.rb
+++ /dev/null
@@ -1,32 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-describe Banzai::SuggestionsParser do
- describe '.parse' do
- it 'returns a list of suggestion contents' do
- markdown = <<-MARKDOWN.strip_heredoc
- ```suggestion
- foo
- bar
- ```
-
- ```
- nothing
- ```
-
- ```suggestion
- xpto
- baz
- ```
-
- ```thing
- this is not a suggestion, it's a thing
- ```
- MARKDOWN
-
- expect(described_class.parse(markdown)).to eq([" foo\n bar",
- " xpto\n baz"])
- end
- end
-end