Skip to content

Commit

Permalink
Use Minitest instead of ActiveSupport for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Nov 6, 2024
1 parent 78f45b1 commit 553d5c2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
12 changes: 2 additions & 10 deletions test/ruby_lsp_rails/server_test.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
# typed: true
# frozen_string_literal: true

require "test_helper"

# Configure Rails Environment
ENV["RAILS_ENV"] = "test"

require_relative "../dummy/config/environment"
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../test/dummy/db/migrate", __dir__)]
ActiveRecord::Migrator.migrations_paths << File.expand_path("../db/migrate", __dir__)

require "test_helper_server"
require "ruby_lsp/ruby_lsp_rails/server"

class ServerTest < Minitest::Test
class ServerTest < ActiveSupport::TestCase # Minitest::Test
def setup
@stdout = StringIO.new
@server = RubyLsp::Rails::Server.new(stdout: @stdout, override_default_output_device: false)
Expand Down
11 changes: 11 additions & 0 deletions test/test_helper_server.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# typed: true
# frozen_string_literal: true

# Configure Rails Environment
ENV["RAILS_ENV"] = "test"

require "test_helper"

require_relative "../test/dummy/config/environment"
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../test/dummy/db/migrate", __dir__)]
ActiveRecord::Migrator.migrations_paths << File.expand_path("../db/migrate", __dir__)

0 comments on commit 553d5c2

Please sign in to comment.