Skip to content
Browse files

Remove broken rubygems plugins that only load in Ruby 1.9

  • Loading branch information...
1 parent 8011efc commit 8968a8ccc479f81aef73987a2ab8dadf28eba6c7 @indirect indirect committed
Showing with 29 additions and 29 deletions.
  1. +27 −7 spec/install/gems/resolving_spec.rb
  2. +2 −22 spec/support/builders.rb
View
34 spec/install/gems/resolving_spec.rb
@@ -39,14 +39,34 @@
should_be_installed "actionpack 2.3.2", "activesupport 2.3.2"
end
- it "works with crazy rubygem plugin stuff" do
- install_gemfile <<-G
- source "file://#{gem_repo1}"
- gem "net_c"
- gem "net_e"
- G
+ describe "with crazy rubygem plugin stuff" do
+ it "installs plugins" do
+ install_gemfile <<-G
+ source "file://#{gem_repo1}"
+ gem "net_b"
+ G
+
+ should_be_installed "net_b 1.0"
+ end
- should_be_installed "net_a 1.0", "net_b 1.0", "net_c 1.0", "net_d 1.0", "net_e 1.0"
+ it "installs plugins depended on by other plugins" do
+ install_gemfile <<-G
+ source "file://#{gem_repo1}"
+ gem "net_a"
+ G
+
+ should_be_installed "net_a 1.0", "net_b 1.0"
+ end
+
+ it "installs multiple levels of dependencies" do
+ install_gemfile <<-G
+ source "file://#{gem_repo1}"
+ gem "net_c"
+ gem "net_e"
+ G
+
+ should_be_installed "net_a 1.0", "net_b 1.0", "net_c 1.0", "net_d 1.0", "net_e 1.0"
+ end
end
end
end
View
24 spec/support/builders.rb
@@ -143,17 +143,9 @@ def build_repo1
build_gem "net_a" do |s|
s.add_dependency "net_b"
s.add_dependency "net_build_extensions"
- s.write "lib/rubygems_plugin.rb", <<-R
- require 'net_b'
- require 'net_a'
- R
end
- build_gem "net_b" do |s|
- s.write "lib/rubygems_plugin.rb", <<-G
- require 'net_b'
- G
- end
+ build_gem "net_b"
build_gem "net_build_extensions" do |s|
s.add_dependency "rake"
@@ -172,24 +164,12 @@ def build_repo1
build_gem "net_c" do |s|
s.add_dependency "net_a"
s.add_dependency "net_d"
- s.write "lib/rubygems_plugin.rb", <<-G
- require 'net_a'
- require 'net_d'
- require 'net_c'
- G
end
- build_gem "net_d" do |s|
- s.write "lib/rubygems_plugin.rb", <<-G
- require 'net_d'
- G
- end
+ build_gem "net_d"
build_gem "net_e" do |s|
s.add_dependency "net_d"
- s.write "lib/rubygems_plugin.rb", <<-G
- require 'net_d'
- G
end
end
end

0 comments on commit 8968a8c

Please sign in to comment.
Something went wrong with that request. Please try again.