File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed
lib/ruby_lsp/ruby_lsp_rspec Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ def generate_id(example)
8080 def adjust_backtrace ( backtrace )
8181 # Correct the backtrace entry so that vscode recognized it as a link to open
8282 parts = backtrace . split ( ":" , 3 )
83- parts [ 0 ] . sub ( /^\. / , "file://" + File . expand_path ( "." ) ) + ":" + parts [ 1 ] + " : " + parts [ 2 ]
83+ parts [ 0 ] . sub ( /^\. / , "file://" + File . expand_path ( "." ) ) + ":" + parts [ 1 ] + " : " + ( parts [ 2 ] || "" )
8484 end
8585 end
8686 end
Original file line number Diff line number Diff line change 3030 it "raises an error" do
3131 raise "oops"
3232 end
33+ it "is pending but fixed" do
34+ pending
35+ expect { raise "error" } . to raise_error
36+ end
3337 end
3438end
Original file line number Diff line number Diff line change 132132 "uri" => "file://#{ fixture_path } " ,
133133 } ,
134134 } ,
135+ {
136+ "method" => "start" ,
137+ "params" => {
138+ "id" => "./spec/fixtures/rspec_example_spec.rb:11::./spec/fixtures/rspec_example_spec.rb:12::./spec/fixtures/rspec_example_spec.rb:33" ,
139+ "line" => "33" ,
140+ "uri" => "file://#{ fixture_path } " ,
141+ } ,
142+ } ,
143+ {
144+ "method" => "fail" ,
145+ "params" => {
146+ "id" => "./spec/fixtures/rspec_example_spec.rb:11::./spec/fixtures/rspec_example_spec.rb:12::./spec/fixtures/rspec_example_spec.rb:33" ,
147+ "message" => "Expected pending 'No reason given' to fail. No error was raised.\n \n # file://#{ fixture_path } :33 : " ,
148+ "uri" => "file://#{ fixture_path } " ,
149+ } ,
150+ } ,
135151 { "method" => "finish" , "params" => { } } ,
136152 ]
137153
You can’t perform that action at this time.
0 commit comments