diff options
-rw-r--r-- | spec/resolver/basic_spec.rb | 6 | ||||
-rw-r--r-- | spec/support/indexes.rb | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/spec/resolver/basic_spec.rb b/spec/resolver/basic_spec.rb index 23ff0a8b5d..b13cd89abe 100644 --- a/spec/resolver/basic_spec.rb +++ b/spec/resolver/basic_spec.rb @@ -50,6 +50,12 @@ RSpec.describe "Resolving" do should_resolve_as %w[activemerchant-2.3.5 activesupport-3.0.0.beta1] end + it "doesn't select a pre-release if not specified in the Gemfile" do + dep "activesupport" + dep "reform" + should_resolve_as %w[reform-1.0.0 activesupport-2.3.5] + end + it "raises an exception if a child dependency is not resolved" do @index = a_unresovable_child_index dep "chef_app_error" diff --git a/spec/support/indexes.rb b/spec/support/indexes.rb index c6d0538063..f9b0104a16 100644 --- a/spec/support/indexes.rb +++ b/spec/support/indexes.rb @@ -137,6 +137,10 @@ module Spec dep "activesupport", ">= #{version}" end end + + gem "reform", ["1.0.0"] do + dep "activesupport", ">= 1.0.0.beta1" + end end end |