contentful-management 2.7.0 → 2.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +7 -1
- data/lib/contentful/management/environment.rb +10 -1
- data/lib/contentful/management/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/environment/create_with_different_source.yml +1901 -0
- data/spec/lib/contentful/management/environment_spec.rb +12 -0
- metadata +4 -2
@@ -67,6 +67,18 @@ describe Contentful::Management::Environment do
|
|
67
67
|
expect(environment.name).to eq 'Delete Me'
|
68
68
|
}
|
69
69
|
end
|
70
|
+
|
71
|
+
it 'create with different source environment' do
|
72
|
+
vcr('environment/create_with_different_source') {
|
73
|
+
master = described_class.find(client, space_id, 'master')
|
74
|
+
expect(master.entries.all.count).not_to eq 0
|
75
|
+
|
76
|
+
non_master_source = described_class.create(client, space_id, id: 'non-master-rb', source_environment_id: 'source', name: 'Non Master - Ruby')
|
77
|
+
sleep(5) # Need to sleep to ensure environment is ready
|
78
|
+
non_master_source.reload
|
79
|
+
expect(non_master_source.entries.all.count).to eq 0
|
80
|
+
}
|
81
|
+
end
|
70
82
|
end
|
71
83
|
|
72
84
|
describe '#destroy' do
|
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.
|
4
|
+
version: 2.8.0
|
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: 2019-
|
13
|
+
date: 2019-03-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: http
|
@@ -605,6 +605,7 @@ files:
|
|
605
605
|
- spec/fixtures/vcr_cassettes/entry/updated_true.yml
|
606
606
|
- spec/fixtures/vcr_cassettes/environment/all.yml
|
607
607
|
- spec/fixtures/vcr_cassettes/environment/create.yml
|
608
|
+
- spec/fixtures/vcr_cassettes/environment/create_with_different_source.yml
|
608
609
|
- spec/fixtures/vcr_cassettes/environment/destroy.yml
|
609
610
|
- spec/fixtures/vcr_cassettes/environment/entry_proxy.yml
|
610
611
|
- spec/fixtures/vcr_cassettes/environment/find.yml
|
@@ -999,6 +1000,7 @@ test_files:
|
|
999
1000
|
- spec/fixtures/vcr_cassettes/entry/updated_true.yml
|
1000
1001
|
- spec/fixtures/vcr_cassettes/environment/all.yml
|
1001
1002
|
- spec/fixtures/vcr_cassettes/environment/create.yml
|
1003
|
+
- spec/fixtures/vcr_cassettes/environment/create_with_different_source.yml
|
1002
1004
|
- spec/fixtures/vcr_cassettes/environment/destroy.yml
|
1003
1005
|
- spec/fixtures/vcr_cassettes/environment/entry_proxy.yml
|
1004
1006
|
- spec/fixtures/vcr_cassettes/environment/find.yml
|