Skip to content

Commit 3a45b12

Browse files
authored
Merge pull request #229 from Shopify/andyw8/andyw8-avoid-skip
Avoid need to skip test
2 parents 7beb6d5 + e7f11a9 commit 3a45b12

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/ruby_lsp_rails/rails_client_test.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ class RailsClientTest < ActiveSupport::TestCase
3636
end
3737

3838
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-
4139
previous_bundle_gemfile = ENV["BUNDLE_GEMFILE"]
42-
project_root = Pathname.new(previous_bundle_gemfile).dirname
40+
project_root = File.expand_path("../..", __dir__)
4341

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

0 commit comments

Comments
 (0)