summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Metcalfe <git@patrickmetcalfe.com>2015-04-22 20:22:12 -0500
committerPatrick Metcalfe <git@patrickmetcalfe.com>2015-04-22 20:22:12 -0500
commitf984eeb5d9a367b3d9fff13a2467bf09708fe3a2 (patch)
tree2456c39cec50df853bfa9f11af410bb22536ed3a
parentd81498ccca48dd7492c7948b8b2902a16c87e7cd (diff)
downloadbundler-f984eeb5d9a367b3d9fff13a2467bf09708fe3a2.tar.gz
no need to be testing functionality outside its scope
-rw-r--r--spec/bundler/retry_spec.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/spec/bundler/retry_spec.rb b/spec/bundler/retry_spec.rb
index 8e35a1013d..aa4e5e42ad 100644
--- a/spec/bundler/retry_spec.rb
+++ b/spec/bundler/retry_spec.rb
@@ -11,17 +11,6 @@ describe Bundler::Retry do
expect(attempts).to eq(1)
end
- it "defaults to retrying twice" do
- attempts = 0
- expect {
- Bundler::Retry.new(nil).attempt do
- attempts += 1
- raise "nope"
- end
- }.to raise_error("nope")
- expect(attempts).to eq(3)
- end
-
it "returns the first valid result" do
jobs = [Proc.new{ raise "foo" }, Proc.new{ :bar }, Proc.new{ raise "foo" }]
attempts = 0