Skip to content

Instantly share code, notes, and snippets.

@spastorino
Created December 21, 2010 22:56
Show Gist options
  • Save spastorino/750759 to your computer and use it in GitHub Desktop.
Save spastorino/750759 to your computer and use it in GitHub Desktop.
diff --git a/spec/resolver/basic_spec.rb b/spec/resolver/basic_spec.rb
index 177a7b0..f54431f 100644
--- a/spec/resolver/basic_spec.rb
+++ b/spec/resolver/basic_spec.rb
@@ -17,4 +17,11 @@ describe "Resolving" do
should_resolve_as %w(actionpack-2.3.5 activesupport-2.3.5 rack-1.0)
end
-end
\ No newline at end of file
+
+ it "resolves a gem with dependencies using >=" do
+ dep "horo", ">= 1.0.2"
+ dep "rdoc", ">= 2.5.10"
+
+ should_resolve_as %w(horo-1.0.2 rdoc-2.5.11)
+ end
+end
diff --git a/spec/support/indexes.rb b/spec/support/indexes.rb
index f33501c..1ca4570 100644
--- a/spec/support/indexes.rb
+++ b/spec/support/indexes.rb
@@ -106,7 +106,15 @@ module Spec
dep "activesupport", ">= #{version}"
end
end
+
+ gem 'horo', '1.0.2' do
+ dep 'rdoc', '~> 2.5'
+ end
+
+ versions '2.5.11 3.0.1' do |version|
+ gem 'rdoc', version
+ end
end
end
end
-end
\ No newline at end of file
+end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment