File tree 5 files changed +18
-46
lines changed 5 files changed +18
-46
lines changed Original file line number Diff line number Diff line change 17
17
- gemfile : " gemfiles/Gemfile-rails-main"
18
18
experimental : true
19
19
runs-on : ${{ matrix.os }}
20
- timeout-minutes : 15
20
+ timeout-minutes : 25
21
21
env :
22
22
BUNDLE_GEMFILE : ${{ github.workspace }}/${{ matrix.gemfile }}
23
23
continue-on-error : ${{ !!matrix.experimental }}
38
38
cache-version : 7
39
39
40
40
- name : Run tests
41
- run : bundle exec rake
41
+ run : |
42
+ bundle exec rails db:setup
43
+ bundle exec rake
42
44
lint :
43
45
runs-on : ubuntu-latest
44
46
steps :
Original file line number Diff line number Diff line change @@ -238,15 +238,15 @@ GEM
238
238
ruby-progressbar (1.13.0 )
239
239
ruby2_keywords (0.0.5 )
240
240
securerandom (0.4.1 )
241
- sorbet (0.5.11966 )
242
- sorbet-static (= 0.5.11966 )
243
- sorbet-runtime (0.5.11966 )
244
- sorbet-static (0.5.11966 -aarch64-linux )
245
- sorbet-static (0.5.11966 -universal-darwin )
246
- sorbet-static (0.5.11966 -x86_64-linux )
247
- sorbet-static-and-runtime (0.5.11966 )
248
- sorbet (= 0.5.11966 )
249
- sorbet-runtime (= 0.5.11966 )
241
+ sorbet (0.5.12046 )
242
+ sorbet-static (= 0.5.12046 )
243
+ sorbet-runtime (0.5.12046 )
244
+ sorbet-static (0.5.12046 -aarch64-linux )
245
+ sorbet-static (0.5.12046 -universal-darwin )
246
+ sorbet-static (0.5.12046 -x86_64-linux )
247
+ sorbet-static-and-runtime (0.5.12046 )
248
+ sorbet (= 0.5.12046 )
249
+ sorbet-runtime (= 0.5.12046 )
250
250
spoom (1.5.4 )
251
251
erubi (>= 1.10.0 )
252
252
prism (>= 0.28.0 )
Original file line number Diff line number Diff line change @@ -10,19 +10,10 @@ load "rails/tasks/statistics.rake"
10
10
require "bundler/gem_tasks"
11
11
require "rake/testtask"
12
12
13
- # Since `server.rb` runs within the host Rails application, we want to ensure
14
- # we don't accidentally depend on sorbet-runtime. `server_test` intentionally doesn't use `test_helper`.
15
- # We run `server_test` in a seperate Rake task.
16
13
Rake ::TestTask . new ( :test ) do |t |
17
14
t . libs << "test"
18
15
t . libs << "lib"
19
- t . test_files = FileList [ "test/**/*_test.rb" ] - [ "test/ruby_lsp_rails/server_test.rb" ]
16
+ t . test_files = FileList [ "test/**/*_test.rb" ]
20
17
end
21
18
22
- Rake ::TestTask . new ( :server_test ) do |t |
23
- t . libs << "test"
24
- t . libs << "lib"
25
- t . test_files = [ "test/ruby_lsp_rails/server_test.rb" ]
26
- end
27
-
28
- task default : [ :"db:setup" , :test , :server_test ]
19
+ task default : :test
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# typed: true
2
2
# frozen_string_literal: true
3
3
4
- # Configure Rails Environment
5
- ENV [ "RAILS_ENV" ] = "test"
6
- require_relative "../dummy/config/environment"
7
-
8
- require "minitest/autorun"
9
- require "mocha/minitest"
4
+ require "test_helper"
10
5
require "ruby_lsp/ruby_lsp_rails/server"
11
6
12
- if defined? ( T )
13
- puts "T is defined, indicating that sorbet-runtime was loaded"
14
- puts "This test should run without sorbet-runtime"
15
- exit ( 1 )
16
- end
17
-
18
7
class ServerTest < ActiveSupport ::TestCase
19
8
setup do
20
9
@stdout = StringIO . new
@@ -257,7 +246,8 @@ def print_it!
257
246
end
258
247
end
259
248
260
- server . print_it!
249
+ server #: as untyped
250
+ . print_it!
261
251
262
252
assert_match ( "Content-Length: 70\r \n \r \n " , stderr . string )
263
253
assert_match (
You can’t perform that action at this time.
0 commit comments