aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support
diff options
context:
space:
mode:
authorHemant Kumar <gethemant@gmail.com>2013-07-26 00:43:15 +0530
committerHemant Kumar <gethemant@gmail.com>2013-07-26 00:43:15 +0530
commitff269383b8572e9403a522a66e4be0837636f8ae (patch)
tree5e09b93451451c3fc14c099ac909e0a981d8feff /spec/support
parent1a493004fd0646d53633eadcb02de17b206289b9 (diff)
downloadbundler-ff269383b8572e9403a522a66e4be0837636f8ae.tar.gz
Raise user friendly errors in case of Cyclic Dependency
Fixes #2506
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/indexes.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/support/indexes.rb b/spec/support/indexes.rb
index 2ca67a63..d49f5767 100644
--- a/spec/support/indexes.rb
+++ b/spec/support/indexes.rb
@@ -130,5 +130,22 @@ module Spec
end
end
end
+
+ def a_circular_index
+ build_index do
+ gem("foo", '0.2.6') do
+ dep "bar", ">= 0"
+ end
+
+ gem("bar", "1.0.0") do
+ dep "foo", ">= 0"
+ end
+
+ gem("circular_app", '1.0.0') do
+ dep "foo", ">= 0"
+ dep "bar", ">= 0"
+ end
+ end
+ end
end
end