File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change 216216 expect ( the_bundle ) . to include_gems "rack 1.0.0" , "activesupport 2.3.5"
217217 end
218218
219+ it "loads env plugins" do
220+ plugin_msg = "hello from an env plugin!"
221+ create_file "plugins/rubygems_plugin.rb" , "puts '#{ plugin_msg } '"
222+ puts ENV [ "RUBYLIB" ]
223+ install_gemfile <<-G , :env => { "RUBYLIB" => "#{ bundled_app ( "plugins/" ) } :#{ ENV [ "RUBYLIB" ] } " }
224+ source "#{ file_uri_for ( gem_repo1 ) } "
225+ gem "rack"
226+ G
227+
228+ expect ( last_command . stdboth ) . to include ( plugin_msg )
229+ end
230+
219231 describe "with a gem that installs multiple platforms" do
220232 it "installs gems for the local platform as first choice" do
221233 skip "version is 1.0, not 1.0.0" if Gem . win_platform?
432444 gem 'foo'
433445 G
434446 end
435-
436- it "loads env plugins" do
437- plugin_msg = "hello from an env plugin!"
438- create_file "plugins/rubygems_plugin.rb" , "puts '#{ plugin_msg } '"
439- install_gemfile <<-G , :env => { "RUBYLIB" => bundled_app ( "plugins/" ) . to_s }
440- source "#{ file_uri_for ( gem_repo1 ) } "
441- gem 'foo'
442- G
443- expect ( last_command . stdboth ) . to include ( plugin_msg )
444- end
445447 end
446448
447449 describe "Ruby version in Gemfile.lock" do
You can’t perform that action at this time.
0 commit comments