spec/lib/contentful/management/organization_spec.rb in contentful-management-3.0.0 vs spec/lib/contentful/management/organization_spec.rb in contentful-management-3.1.0

- old
+ new

@@ -44,9 +44,19 @@ expect(user.confirmed).to eq true expect(user.sign_in_count).to eq 42 expect(user.avatar_url).to be_truthy } end + + describe "all" do + it 'returns a Contentful::Array' do + vcr('organization/users') { expect(subject.all.first.users.all).to be_kind_of Contentful::Management::Array } + end + + it 'builds a Contentful::Management::Space object' do + vcr('organization/users') { expect(subject.all.first.users.all.first).to be_kind_of Contentful::Management::User } + end + end end end end end end