Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions test/ruby_lsp_rails/rails_client_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ class RailsClientTest < ActiveSupport::TestCase
end

test "instantiation finds the right directory when bundle gemfile points to .ruby-lsp" do
skip if ENV["BUNDLE_GEMFILE"]&.end_with?("gemfiles/Gemfile-rails-main")

previous_bundle_gemfile = ENV["BUNDLE_GEMFILE"]
project_root = Pathname.new(previous_bundle_gemfile).dirname
project_root = File.expand_path("../..", __dir__)

ENV["BUNDLE_GEMFILE"] = "#{project_root}/.ruby-lsp/Gemfile"
assert_equal("#{project_root}/test/dummy", RailsClient.new.root.to_s)
Expand Down