We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7beb6d5 + e7f11a9 commit 3a45b12Copy full SHA for 3a45b12
test/ruby_lsp_rails/rails_client_test.rb
@@ -36,10 +36,8 @@ class RailsClientTest < ActiveSupport::TestCase
36
end
37
38
test "instantiation finds the right directory when bundle gemfile points to .ruby-lsp" do
39
- skip if ENV["BUNDLE_GEMFILE"]&.end_with?("gemfiles/Gemfile-rails-main")
40
-
41
previous_bundle_gemfile = ENV["BUNDLE_GEMFILE"]
42
- project_root = Pathname.new(previous_bundle_gemfile).dirname
+ project_root = File.expand_path("../..", __dir__)
43
44
ENV["BUNDLE_GEMFILE"] = "#{project_root}/.ruby-lsp/Gemfile"
45
assert_equal("#{project_root}/test/dummy", RailsClient.new.root.to_s)
0 commit comments