cfoundry 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cfoundry/v2/model.rb +2 -2
- data/lib/cfoundry/version.rb +1 -1
- data/spec/cfoundry/v2/model_spec.rb +7 -2
- metadata +3 -3
data/lib/cfoundry/v2/model.rb
CHANGED
data/lib/cfoundry/version.rb
CHANGED
@@ -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.
|
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-
|
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:
|
402
|
+
hash: -2380333673974622129
|
403
403
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
404
404
|
none: false
|
405
405
|
requirements:
|