Permalink
Browse files

test for gemcutter endpoint API with nested dependencies

  • Loading branch information...
1 parent 46c542c commit 559a4240ec9bbec7adfad77988f23a1aaea1c7f8 @hone hone committed Nov 5, 2010
Showing with 17 additions and 0 deletions.
  1. +17 −0 spec/install/gems/dependency_api_spec.rb
@@ -11,6 +11,23 @@
should_be_installed "rack 1.0.0"
end
+ it "should handle nested dependencies" do
+ gemfile <<-G
+ source "http://localgemserver.test"
+ gem "rails"
+ G
+
+ bundle :install, :artifice => "endpoint"
+ [
+ "rails 2.3.2",
+ "actionpack 2.3.2",
+ "activerecord 2.3.2",
+ "actionmailer 2.3.2",
+ "activeresource 2.3.2",
+ "activesupport 2.3.2"
+ ].each {|gem| should_be_installed gem }
+ end
+
it "falls back when the API errors out" do
simulate_platform mswin

0 comments on commit 559a424

Please sign in to comment.