File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 1
1
# typed: true
2
2
# frozen_string_literal: true
3
3
4
- require "test_helper"
5
-
6
- # Configure Rails Environment
7
- ENV [ "RAILS_ENV" ] = "test"
8
-
9
- require_relative "../dummy/config/environment"
10
- ActiveRecord ::Migrator . migrations_paths = [ File . expand_path ( "../test/dummy/db/migrate" , __dir__ ) ]
11
- ActiveRecord ::Migrator . migrations_paths << File . expand_path ( "../db/migrate" , __dir__ )
12
-
4
+ require "test_helper_server"
13
5
require "ruby_lsp/ruby_lsp_rails/server"
14
6
15
- class ServerTest < Minitest ::Test
7
+ class ServerTest < ActiveSupport :: TestCase # Minitest::Test
16
8
def setup
17
9
@stdout = StringIO . new
18
10
@server = RubyLsp ::Rails ::Server . new ( stdout : @stdout , override_default_output_device : false )
Original file line number Diff line number Diff line change
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ # Configure Rails Environment
5
+ ENV [ "RAILS_ENV" ] = "test"
6
+
7
+ require "test_helper"
8
+
9
+ require_relative "../test/dummy/config/environment"
10
+ ActiveRecord ::Migrator . migrations_paths = [ File . expand_path ( "../test/dummy/db/migrate" , __dir__ ) ]
11
+ ActiveRecord ::Migrator . migrations_paths << File . expand_path ( "../db/migrate" , __dir__ )
You can’t perform that action at this time.
0 commit comments