Sha256: cf07e043fc6dd2dd787261352ca3f8a0a07318868086146e7784b50ae9f97bb0

Contents?: true

Size: 694 Bytes

Versions: 5

Compression:

Stored size: 694 Bytes

Contents

require 'spec_helper'


describe 'DeletedEntry' do
  let(:deleted_entry){
    vcr('sync_deleted_entry'){
      create_client.sync(initial: true, type: 'DeletedEntry').first_page.items[0]
    }
  }

  describe 'SystemProperties' do
    it 'has a #sys getter returning a hash with symbol keys' do
      expect( deleted_entry.sys ).to be_a Hash
      expect( deleted_entry.sys.keys.sample ).to be_a Symbol
    end

    it 'has #id' do
      expect( deleted_entry.id ).to eq "CVebBDcQsSsu6yKKIayy"
    end

    it 'has #type' do
      expect( deleted_entry.type ).to eq "DeletedEntry"
    end

    it 'has #deleted_at' do
      expect( deleted_entry.created_at ).to be_a DateTime
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
contentful-0.3.4 spec/deleted_entry_spec.rb
contentful-0.3.3 spec/deleted_entry_spec.rb
contentful-0.3.2 spec/deleted_entry_spec.rb
contentful-0.3.1 spec/deleted_entry_spec.rb
contentful-0.3.0 spec/deleted_entry_spec.rb