Skip to content

Commit eeeed6c

Browse files
committed
Restore test
1 parent a220eec commit eeeed6c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/ruby_lsp_rails/runner_client_test.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ class RunnerClientTest < ActiveSupport::TestCase
3131
assert_equal(columns, response.fetch(:columns))
3232
assert_match(%r{db/schema\.rb$}, response.fetch(:schema_file))
3333
end
34+
35+
test "returns nil if the request returns a nil response" do
36+
assert_nil @client.model("ApplicationRecord") # ApplicationRecord is abstract
37+
end
3438
end
3539
end
3640
end

0 commit comments

Comments
 (0)