summaryrefslogtreecommitdiff
path: root/spec/syntax_suggest/unit
diff options
context:
space:
mode:
Diffstat (limited to 'spec/syntax_suggest/unit')
-rw-r--r--spec/syntax_suggest/unit/clean_document_spec.rb16
-rw-r--r--spec/syntax_suggest/unit/cli_spec.rb2
-rw-r--r--spec/syntax_suggest/unit/code_search_spec.rb12
-rw-r--r--spec/syntax_suggest/unit/display_invalid_blocks_spec.rb12
4 files changed, 21 insertions, 21 deletions
diff --git a/spec/syntax_suggest/unit/clean_document_spec.rb b/spec/syntax_suggest/unit/clean_document_spec.rb
index fa049ad8df..4fb79efd62 100644
--- a/spec/syntax_suggest/unit/clean_document_spec.rb
+++ b/spec/syntax_suggest/unit/clean_document_spec.rb
@@ -66,9 +66,9 @@ module SyntaxSuggest
highlight_lines: lines[0]
).call
).to eq(<<~'EOM')
- ❯ 1 User
- ❯ 2 .where(name: 'schneems')
- ❯ 3 .first
+ > 1 User
+ > 2 .where(name: 'schneems')
+ > 3 .first
EOM
end
@@ -169,8 +169,8 @@ module SyntaxSuggest
).call
).to eq(<<~'EOM')
1 context "timezones workaround" do
- ❯ 2 it "should receive a time in UTC format and return the time with the"\
- ❯ 3 "office's UTC offset substracted from it" do
+ > 2 it "should receive a time in UTC format and return the time with the"\
+ > 3 "office's UTC offset substracted from it" do
4 travel_to DateTime.new(2020, 10, 1, 10, 0, 0) do
5 office = build(:office)
6 end
@@ -227,9 +227,9 @@ module SyntaxSuggest
highlight_lines: lines[0]
).call
).to eq(<<~'EOM')
- ❯ 1 it "should " \
- ❯ 2 "keep " \
- ❯ 3 "going " do
+ > 1 it "should " \
+ > 2 "keep " \
+ > 3 "going " do
4 end
EOM
end
diff --git a/spec/syntax_suggest/unit/cli_spec.rb b/spec/syntax_suggest/unit/cli_spec.rb
index fecf3e304c..23412f0193 100644
--- a/spec/syntax_suggest/unit/cli_spec.rb
+++ b/spec/syntax_suggest/unit/cli_spec.rb
@@ -58,7 +58,7 @@ module SyntaxSuggest
expect(exit_obj.called?).to be_truthy
expect(exit_obj.value).to eq(1)
- expect(out.strip).to include("❯ 36 def filename")
+ expect(out.strip).to include("> 36 def filename")
end
it "parses valid code with flags" do
diff --git a/spec/syntax_suggest/unit/code_search_spec.rb b/spec/syntax_suggest/unit/code_search_spec.rb
index b62b2c0a3c..f836ba36f3 100644
--- a/spec/syntax_suggest/unit/code_search_spec.rb
+++ b/spec/syntax_suggest/unit/code_search_spec.rb
@@ -185,8 +185,8 @@ module SyntaxSuggest
expect(search.record_dir.join("1-add-1-(3__4).txt").read).to include(<<~EOM)
1 class OH
2 def hello
- ❯ 3 def hai
- ❯ 4 end
+ > 3 def hai
+ > 4 end
5 end
EOM
end
@@ -245,7 +245,7 @@ module SyntaxSuggest
).call
expect(document).to include(<<~'EOM')
- ❯ 36 def filename
+ > 36 def filename
EOM
end
@@ -295,9 +295,9 @@ module SyntaxSuggest
1 require 'rails_helper'
2
3 RSpec.describe AclassNameHere, type: :worker do
- ❯ 4 describe "thing" do
- ❯ 16 end # line 16 accidental end, but valid block
- ❯ 30 end # mismatched due to 16
+ > 4 describe "thing" do
+ > 16 end # line 16 accidental end, but valid block
+ > 30 end # mismatched due to 16
31 end
EOM
end
diff --git a/spec/syntax_suggest/unit/display_invalid_blocks_spec.rb b/spec/syntax_suggest/unit/display_invalid_blocks_spec.rb
index 45b3e7f2e7..2c59d9dc78 100644
--- a/spec/syntax_suggest/unit/display_invalid_blocks_spec.rb
+++ b/spec/syntax_suggest/unit/display_invalid_blocks_spec.rb
@@ -52,7 +52,7 @@ module SyntaxSuggest
)
display.call
expect(io.string).to include([
- "❯ 2 ",
+ "> 2 ",
DisplayCodeWithLineNumbers::TERMINAL_HIGHLIGHT,
" def hello"
].join)
@@ -69,7 +69,7 @@ module SyntaxSuggest
code_lines: code_lines
)
display.call
- expect(io.string).to include("❯ 2 def hello")
+ expect(io.string).to include("> 2 def hello")
end
it "outputs to io when using `call`" do
@@ -92,7 +92,7 @@ module SyntaxSuggest
code_lines: code_lines
)
display.call
- expect(io.string).to include("❯ 2 def hello")
+ expect(io.string).to include("> 2 def hello")
end
it " wraps code with github style codeblocks" do
@@ -116,7 +116,7 @@ module SyntaxSuggest
).call
expect(io.string).to include(<<~EOM)
1 class OH
- ❯ 2 def hello
+ > 2 def hello
4 def hai
5 end
6 end
@@ -143,7 +143,7 @@ module SyntaxSuggest
expect(io.string).to include([
" 1 class OH",
- "❯ 2 def hello",
+ "> 2 def hello",
" 4 end",
" 5 end",
""
@@ -161,7 +161,7 @@ module SyntaxSuggest
expect(io.string).to include(
[
" 1 class OH",
- ["❯ 2 ", DisplayCodeWithLineNumbers::TERMINAL_HIGHLIGHT, " def hello"].join,
+ ["> 2 ", DisplayCodeWithLineNumbers::TERMINAL_HIGHLIGHT, " def hello"].join,
" 4 end",
" 5 end",
""