diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-08-02 12:06:43 +0900 |
---|---|---|
committer | nagachika <nagachika@ruby-lang.org> | 2021-08-19 15:46:40 +0900 |
commit | 679185d6c87e0f2e4f6a5da5ce50d02c80ab31b1 (patch) | |
tree | 293fa8c1f863aeb2f711310dc4941528fa829401 /spec/bundler/bundler/plugin | |
parent | f1039afa4179f9d3a42f0d89b499e3c955b495d9 (diff) |
Merge RubyGems 3.2.24 and Bundler 2.2.24
Diffstat (limited to 'spec/bundler/bundler/plugin')
-rw-r--r-- | spec/bundler/bundler/plugin/index_spec.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/bundler/bundler/plugin/index_spec.rb b/spec/bundler/bundler/plugin/index_spec.rb index e7bde66879..bf32c3e2ba 100644 --- a/spec/bundler/bundler/plugin/index_spec.rb +++ b/spec/bundler/bundler/plugin/index_spec.rb @@ -98,7 +98,13 @@ RSpec.describe Bundler::Plugin::Index do expect(index.hook_plugins("after-bar")).to eq([plugin_name]) end - context "that are not registered", :focused do + it "is gone after unregistration" do + expect(index.index_file.read).to include("after-bar:\n - \"new-plugin\"\n") + index.unregister_plugin(plugin_name) + expect(index.index_file.read).to_not include("after-bar:\n - \n") + end + + context "that are not registered" do let(:file) { double("index-file") } before do |