@@ -596,75 +596,6 @@ def exec(command, args)
596596 end
597597 end
598598
599- it "fails bundle commands if plugins are not yet installed" do
600- allow ( Bundler ::SharedHelpers ) . to receive ( :find_gemfile ) . and_return ( bundled_app_gemfile )
601-
602- gemfile <<-G
603- source 'https://gem.repo2'
604- group :development do
605- plugin 'foo'
606- end
607- source 'https://gem.repo1' do
608- gem 'rake'
609- end
610- G
611-
612- plugin_should_not_be_installed ( "foo" )
613-
614- bundle "check" , raise_on_error : false
615- expect ( err ) . to include ( "Plugin foo (>= 0) is not installed" )
616-
617- bundle "exec rake" , raise_on_error : false
618- expect ( err ) . to include ( "Plugin foo (>= 0) is not installed" )
619-
620- bundle "config set --local without development"
621- bundle "install"
622- bundle "config unset --local without"
623-
624- plugin_should_not_be_installed ( "foo" )
625-
626- bundle "check" , raise_on_error : false
627- expect ( err ) . to include ( "Plugin foo (>= 0) is not installed" )
628-
629- bundle "exec rake" , raise_on_error : false
630- expect ( err ) . to include ( "Plugin foo (>= 0) is not installed" )
631-
632- plugin_should_not_be_installed ( "foo" )
633-
634- bundle "install"
635- plugin_should_be_installed ( "foo" )
636-
637- bundle "check"
638- bundle "exec rake -T" , raise_on_error : false
639- expect ( err ) . not_to include ( "Plugin foo (>= 0) is not installed" )
640- end
641-
642- it "fails bundle commands gracefully when a plugin index reference is left dangling" do
643- allow ( Bundler ::SharedHelpers ) . to receive ( :find_gemfile ) . and_return ( bundled_app_gemfile )
644-
645- build_lib "ga-plugin" do |s |
646- s . write "plugins.rb"
647- end
648-
649- install_gemfile <<-G
650- source "https://gem.repo1"
651- plugin 'ga-plugin', :path => "#{ lib_path ( "ga-plugin-1.0" ) } "
652- G
653-
654- expect ( out ) . to include ( "Installed plugin ga-plugin" )
655- plugin_should_be_installed ( "ga-plugin" )
656-
657- FileUtils . rm_rf ( lib_path ( "ga-plugin-1.0" ) )
658-
659- plugin_should_not_be_installed ( "ga-plugin" )
660-
661- bundle "check" , raise_on_error : false
662- expect ( err ) . to include ( "Plugin ga-plugin (>= 0) is not installed" )
663-
664- bundle "exec rake -T" , raise_on_error : false
665- expect ( err ) . to include ( "Plugin ga-plugin (>= 0) is not installed" )
666- end
667-
668599 context "inline gemfiles" do
669600 it "installs the listed plugins" do
670601 code = <<-RUBY
0 commit comments