Skip to content

Commit da85d91

Browse files
committed
Remove unnecessary to_s on uris
1 parent 8d2eb60 commit da85d91

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/ruby_lsp_rails/code_lens_test.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Test < ActiveSupport::TestCase
2727

2828
response = RubyLsp::Executor.new(@store, @message_queue).execute({
2929
method: "textDocument/codeLens",
30-
params: { textDocument: { uri: @uri.to_s }, position: { line: 0, character: 0 } },
30+
params: { textDocument: { uri: @uri }, position: { line: 0, character: 0 } },
3131
}).response
3232

3333
# The first 3 responses are for the test class.
@@ -51,7 +51,7 @@ class Test < ActiveSupport::TestCase
5151

5252
response = RubyLsp::Executor.new(@store, @message_queue).execute({
5353
method: "textDocument/codeLens",
54-
params: { textDocument: { uri: @uri.to_s }, position: { line: 0, character: 0 } },
54+
params: { textDocument: { uri: @uri }, position: { line: 0, character: 0 } },
5555
}).response
5656

5757
# The first 3 responses are for the test class.
@@ -74,7 +74,7 @@ class Test < ActiveSupport::TestCase
7474

7575
response = RubyLsp::Executor.new(@store, @message_queue).execute({
7676
method: "textDocument/codeLens",
77-
params: { textDocument: { uri: @uri.to_s }, position: { line: 0, character: 0 } },
77+
params: { textDocument: { uri: @uri }, position: { line: 0, character: 0 } },
7878
}).response
7979

8080
# The 3 responses are for the test class, none for the test declaration.
@@ -93,7 +93,7 @@ class Test < ActiveSupport::TestCase
9393

9494
response = RubyLsp::Executor.new(@store, @message_queue).execute({
9595
method: "textDocument/codeLens",
96-
params: { textDocument: { uri: @uri.to_s }, position: { line: 0, character: 0 } },
96+
params: { textDocument: { uri: @uri }, position: { line: 0, character: 0 } },
9797
}).response
9898

9999
# The 3 responses are for the test class, none for the test declaration.
@@ -111,7 +111,7 @@ class Test < ActiveSupport::TestCase
111111

112112
response = RubyLsp::Executor.new(@store, @message_queue).execute({
113113
method: "textDocument/codeLens",
114-
params: { textDocument: { uri: @uri.to_s }, position: { line: 0, character: 0 } },
114+
params: { textDocument: { uri: @uri }, position: { line: 0, character: 0 } },
115115
}).response
116116

117117
# The 3 responses are for the test class, none for the test declaration.
@@ -129,7 +129,7 @@ class Test < ActiveSupport::TestCase
129129

130130
response = RubyLsp::Executor.new(@store, @message_queue).execute({
131131
method: "textDocument/codeLens",
132-
params: { textDocument: { uri: @uri.to_s }, position: { line: 0, character: 0 } },
132+
params: { textDocument: { uri: @uri }, position: { line: 0, character: 0 } },
133133
}).response
134134

135135
# The 3 responses are for the test class, none for the test declaration.
@@ -147,7 +147,7 @@ def test_example
147147

148148
response = RubyLsp::Executor.new(@store, @message_queue).execute({
149149
method: "textDocument/codeLens",
150-
params: { textDocument: { uri: @uri.to_s }, position: { line: 0, character: 0 } },
150+
params: { textDocument: { uri: @uri }, position: { line: 0, character: 0 } },
151151
}).response
152152

153153
# The first 3 responses are for the test declaration.

0 commit comments

Comments
 (0)