diff options
Diffstat (limited to 'spec/bundler/plugin/index_spec.rb')
-rw-r--r-- | spec/bundler/plugin/index_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/bundler/plugin/index_spec.rb b/spec/bundler/plugin/index_spec.rb index 71f3adcf02..f969aad12f 100644 --- a/spec/bundler/plugin/index_spec.rb +++ b/spec/bundler/plugin/index_spec.rb @@ -35,5 +35,11 @@ describe Bundler::Plugin::Index do it "returns the plugins name on query" do expect(index.command_plugin("newco")).to eq("cplugin") end + + it "raises error on conflict" do + expect do + index.register_plugin("aplugin", lib_path("aplugin").to_s, ["newco"]) + end.to raise_error(Index::CommandConflict) + end end end |