Skip to content

Commit 64450a3

Browse files
hsbtclaude
andcommitted
Adjust plugin specs to lockfile-based plugin installation
Plugins from the Gemfile now count as regular dependencies and are installed into the bundle path instead of the plugin root. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent e1064de commit 64450a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/plugins/install_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def exec(command, args)
286286

287287
bundle "install"
288288

289-
expected = local_plugin_gem("foo-2.0.0", "lib").to_s
289+
expected = system_gem_path("gems", "foo-2.0.0", "lib").to_s
290290
expect(Bundler::Plugin.index.load_paths("foo")).to eq([expected])
291291
end
292292

@@ -299,7 +299,7 @@ def exec(command, args)
299299

300300
bundle "install", env: { "BUNDLE_WITHOUT" => "default" }
301301

302-
expect(out).to include("Bundle complete! 1 Gemfile dependency, 0 gems now installed.")
302+
expect(out).to include("Bundle complete! 2 Gemfile dependencies, 0 gems now installed.")
303303
end
304304

305305
it "accepts plugin version" do

0 commit comments

Comments
 (0)