aptible-resource 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aptible/resource/errors.rb +4 -0
- data/lib/aptible/resource/version.rb +1 -1
- data/spec/aptible/resource/base_spec.rb +10 -0
- metadata +2 -4
- data/spec/shared/set_env.rb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1130c73b3994bf3cf8c5751389e9b2e23d8a7d33
|
4
|
+
data.tar.gz: fbf8224904f5d0cb9ccf65900062e1fcf6034f4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63aa10d09001fabcc06d7f6669607a2b5cc156d6d61d7913ebf0188e40a9f69c8c11645dee79ce038831327a440e42ff9ed3f380f670f862e228f2eea8f45b1f
|
7
|
+
data.tar.gz: 56b1f8cf488d4fccfc63e6eb068f6bba0c049b56a278b6bbab157645b6b35806dc06c3f963fac76bc03c8a576a65c5b08e86153e7971e3e287754c48669856cc
|
@@ -207,10 +207,20 @@ describe Aptible::Resource::Base do
|
|
207
207
|
expect(subject.create_mainframe.class).to eq Aptible::Resource::Base
|
208
208
|
end
|
209
209
|
|
210
|
+
it 'should have errors present on error' do
|
211
|
+
mainframes_link.stub(:create) { fail hyperresource_exception }
|
212
|
+
expect(subject.create_mainframe.errors.any?).to be_true
|
213
|
+
end
|
214
|
+
|
210
215
|
it 'should return the object in the event of successful creation' do
|
211
216
|
mainframes_link.stub(:create) { mainframe }
|
212
217
|
expect(subject.create_mainframe({})).to eq mainframe
|
213
218
|
end
|
219
|
+
|
220
|
+
it 'should have no errors on successful creation' do
|
221
|
+
mainframes_link.stub(:create) { mainframe }
|
222
|
+
expect(subject.create_mainframe.errors.any?).to be_false
|
223
|
+
end
|
214
224
|
end
|
215
225
|
|
216
226
|
describe '#create_#{relation}!' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aptible-resource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank Macreery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: uri_template
|
@@ -188,7 +188,6 @@ files:
|
|
188
188
|
- spec/fixtures/api.rb
|
189
189
|
- spec/fixtures/mainframe.rb
|
190
190
|
- spec/fixtures/token.rb
|
191
|
-
- spec/shared/set_env.rb
|
192
191
|
- spec/spec_helper.rb
|
193
192
|
homepage: https://github.com/aptible/aptible-resource
|
194
193
|
licenses:
|
@@ -219,5 +218,4 @@ test_files:
|
|
219
218
|
- spec/fixtures/api.rb
|
220
219
|
- spec/fixtures/mainframe.rb
|
221
220
|
- spec/fixtures/token.rb
|
222
|
-
- spec/shared/set_env.rb
|
223
221
|
- spec/spec_helper.rb
|
data/spec/shared/set_env.rb
DELETED