cfoundry 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -134,8 +134,8 @@ module CFoundry::V2
134
134
  true
135
135
  end
136
136
 
137
- def delete
138
- delete!
137
+ def delete(options = {})
138
+ delete!(options)
139
139
  rescue CFoundry::APIError => e
140
140
  if e.instance_of? CFoundry::APIError
141
141
  errors.add(:base, :cc_client)
@@ -1,4 +1,4 @@
1
1
  module CFoundry # :nodoc:
2
2
  # CFoundry library version number.
3
- VERSION = "1.5.0".freeze
3
+ VERSION = "1.5.1".freeze
4
4
  end
@@ -117,13 +117,18 @@ describe CFoundry::V2::Model do
117
117
 
118
118
  describe "delete" do
119
119
  it "uses #delete!" do
120
- mock(subject).delete! { true }
120
+ mock(subject).delete!({}) { true }
121
121
  subject.delete
122
122
  end
123
123
 
124
+ it "passes options along to delete!" do
125
+ mock(subject).delete!(:recursive => true) { true }
126
+ subject.delete(:recursive => true)
127
+ end
128
+
124
129
  context "without errors" do
125
130
  it "returns true" do
126
- mock(subject).delete! { true }
131
+ mock(subject).delete!({}) { true }
127
132
  subject.delete.should == true
128
133
  end
129
134
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfoundry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-05-29 00:00:00.000000000 Z
13
+ date: 2013-05-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multipart-post
@@ -399,7 +399,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
399
399
  version: '0'
400
400
  segments:
401
401
  - 0
402
- hash: 3516132401454604907
402
+ hash: -2380333673974622129
403
403
  required_rubygems_version: !ruby/object:Gem::Requirement
404
404
  none: false
405
405
  requirements: