contentful-management 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -84,4 +84,18 @@ describe Contentful::Management::Environment do
84
84
  }
85
85
  end
86
86
  end
87
+
88
+ describe 'proxies' do
89
+ it 'entries proxy works' do
90
+ vcr('environment/entry_proxy') {
91
+ environment = subject.find(master)
92
+
93
+ entries = environment.entries.all
94
+ expect(entries).to be_a ::Contentful::Management::Array
95
+
96
+ entry = environment.entries.find(entries.first.id)
97
+ expect(entry).to be_a ::Contentful::Management::Entry
98
+ }
99
+ end
100
+ end
87
101
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful-management
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Protas
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-04-16 00:00:00.000000000 Z
13
+ date: 2018-04-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: http
@@ -589,6 +589,7 @@ files:
589
589
  - spec/fixtures/vcr_cassettes/environment/all.yml
590
590
  - spec/fixtures/vcr_cassettes/environment/create.yml
591
591
  - spec/fixtures/vcr_cassettes/environment/destroy.yml
592
+ - spec/fixtures/vcr_cassettes/environment/entry_proxy.yml
592
593
  - spec/fixtures/vcr_cassettes/environment/find.yml
593
594
  - spec/fixtures/vcr_cassettes/environment/find_2.yml
594
595
  - spec/fixtures/vcr_cassettes/environment/not_found.yml
@@ -964,6 +965,7 @@ test_files:
964
965
  - spec/fixtures/vcr_cassettes/environment/all.yml
965
966
  - spec/fixtures/vcr_cassettes/environment/create.yml
966
967
  - spec/fixtures/vcr_cassettes/environment/destroy.yml
968
+ - spec/fixtures/vcr_cassettes/environment/entry_proxy.yml
967
969
  - spec/fixtures/vcr_cassettes/environment/find.yml
968
970
  - spec/fixtures/vcr_cassettes/environment/find_2.yml
969
971
  - spec/fixtures/vcr_cassettes/environment/not_found.yml