spec/lib/contentful/management/entry_spec.rb in contentful-management-1.0.1 vs spec/lib/contentful/management/entry_spec.rb in contentful-management-1.1.0
- old
+ new
@@ -42,9 +42,14 @@
end
end
describe '.all_published' do
let!(:space_id) { 'bjwq7b86vgmm' }
+
+ before :each do
+ expect_any_instance_of(Contentful::Management::Entry.client_association_class).to receive(:warn)
+ end
+
it 'class method also works' do
vcr('entry/all_public') { expect(Contentful::Management::Entry.all_published(client, space_id)).to be_kind_of Contentful::Management::Array }
end
it 'returns a Contentful::Array' do
vcr('entry/all_public') { expect(subject.all_published(space_id)).to be_kind_of Contentful::Management::Array }