@@ -11,7 +11,7 @@ def setup
1111 uri : URI ::Generic . from_path ( path : "/foo/bar.rb" ) ,
1212 source : "def foo; end" ,
1313 version : 1 ,
14- language_id : RubyLsp :: Document :: LanguageId :: Ruby ,
14+ language_id : :ruby ,
1515 )
1616 end
1717
@@ -56,7 +56,7 @@ def test_get_treats_rhtml_as_erb
5656
5757 def test_handling_uris_with_spaces
5858 uri = URI ( "file:///foo%20bar/baz.rb" )
59- @store . set ( uri : uri , source : "def foo; end" , version : 1 , language_id : RubyLsp :: Document :: LanguageId :: Ruby )
59+ @store . set ( uri : uri , source : "def foo; end" , version : 1 , language_id : :ruby )
6060
6161 assert_equal (
6262 RubyLsp ::RubyDocument . new ( source : "def foo; end" , version : 1 , uri : uri , global_state : @global_state ) ,
@@ -66,7 +66,7 @@ def test_handling_uris_with_spaces
6666
6767 def test_handling_uris_for_unsaved_files
6868 uri = URI ( "untitled:Untitled-1" )
69- @store . set ( uri : uri , source : "def foo; end" , version : 1 , language_id : RubyLsp :: Document :: LanguageId :: Ruby )
69+ @store . set ( uri : uri , source : "def foo; end" , version : 1 , language_id : :ruby )
7070
7171 assert_equal (
7272 RubyLsp ::RubyDocument . new ( source : "def foo; end" , version : 1 , uri : uri , global_state : @global_state ) ,
@@ -81,8 +81,8 @@ def test_uris_with_different_schemes_do_not_collide
8181 path = "/foo/bar.rb"
8282 file_uri = URI ( "file://#{ path } " )
8383 git_uri = URI ( "git://#{ path } " )
84- @store . set ( uri : file_uri , source : "def foo; end" , version : 1 , language_id : RubyLsp :: Document :: LanguageId :: Ruby )
85- @store . set ( uri : git_uri , source : "def foo; end" , version : 1 , language_id : RubyLsp :: Document :: LanguageId :: Ruby )
84+ @store . set ( uri : file_uri , source : "def foo; end" , version : 1 , language_id : :ruby )
85+ @store . set ( uri : git_uri , source : "def foo; end" , version : 1 , language_id : :ruby )
8686
8787 refute_same ( @store . get ( file_uri ) , @store . get ( git_uri ) )
8888
@@ -158,7 +158,7 @@ def test_cache
158158 assert_equal ( 1 , counter )
159159
160160 # After the entry in the storage is updated, the cache is invalidated
161- @store . set ( uri : uri , source : "def bar; end" , version : 1 , language_id : RubyLsp :: Document :: LanguageId :: Ruby )
161+ @store . set ( uri : uri , source : "def bar; end" , version : 1 , language_id : :ruby )
162162 5 . times do
163163 @store . cache_fetch ( uri , "textDocument/foldingRange" ) do
164164 counter += 1
@@ -170,7 +170,7 @@ def test_cache
170170
171171 def test_push_edits
172172 uri = URI ( "file:///foo/bar.rb" )
173- @store . set ( uri : uri , source : +"def bar; end" , version : 1 , language_id : RubyLsp :: Document :: LanguageId :: Ruby )
173+ @store . set ( uri : uri , source : +"def bar; end" , version : 1 , language_id : :ruby )
174174
175175 # Write puts 'a' in incremental edits
176176 @store . push_edits (
0 commit comments