Sha256: 4db9006dcd4dd48b9a0fc36bfcf2a8edc4a36cc18f949abe0592e497c4d2b743
Contents?: true
Size: 1.92 KB
Versions: 6
Compression:
Stored size: 1.92 KB
Contents
require "spec_helper" describe "gemcutter's dependency API" do it "should use the API" do gemfile <<-G source "http://localgemserver.test" gem "rack" G bundle :install, :artifice => "endpoint" 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" should_be_installed( "rails 2.3.2", "actionpack 2.3.2", "activerecord 2.3.2", "actionmailer 2.3.2", "activeresource 2.3.2", "activesupport 2.3.2") end it "falls back when the API errors out" do simulate_platform mswin gemfile <<-G source "http://localgemserver.test/" gem "rcov" G bundle :install, :fakeweb => "windows" should_be_installed "rcov 1.0.0" end it "falls back when hitting the Gemcutter Dependency Limit" do gemfile <<-G source "http://localgemserver.test" gem "activesupport" gem "actionpack" gem "actionmailer" gem "activeresource" gem "thin" gem "rack" gem "rails" G bundle :install, :artifice => "endpoint_fallback" should_be_installed( "activesupport 2.3.2", "actionpack 2.3.2", "actionmailer 2.3.2", "activeresource 2.3.2", "activesupport 2.3.2", "thin 1.0.0", "rack 1.0.0", "rails 2.3.2") end it "falls back when Gemcutter API doesn't return proper Marshal format" do gemfile <<-G source "http://localgemserver.test" gem "rack" G bundle :install, :artifice => "endpoint_marshal_fail" should_be_installed "rack 1.0.0" end it "timeouts when Bundler::Fetcher redirects to much" do gemfile <<-G source "http://localgemserver.test" gem "rack" G bundle :install, :artifice => "endpoint_redirect" out.should match(/Too many redirects/) end end
Version data entries
6 entries across 6 versions & 2 rubygems