Sha256: 64df0cad8168d2574b2ef56ced9b6f535f74e19f7709067f82f1258b1ba06d99

Contents?: true

Size: 689 Bytes

Versions: 26

Compression:

Stored size: 689 Bytes

Contents

require 'spec_helper'

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

  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

26 entries across 26 versions & 1 rubygems

Version Path
contentful-2.1.3 spec/deleted_entry_spec.rb
contentful-2.1.2 spec/deleted_entry_spec.rb
contentful-2.1.1 spec/deleted_entry_spec.rb
contentful-2.1.0 spec/deleted_entry_spec.rb
contentful-2.0.3 spec/deleted_entry_spec.rb
contentful-2.0.2 spec/deleted_entry_spec.rb
contentful-2.0.1 spec/deleted_entry_spec.rb
contentful-2.0.0 spec/deleted_entry_spec.rb
contentful-1.2.2 spec/deleted_entry_spec.rb
contentful-1.2.1 spec/deleted_entry_spec.rb
contentful-1.2.0 spec/deleted_entry_spec.rb
contentful-1.1.1 spec/deleted_entry_spec.rb
contentful-1.1.0 spec/deleted_entry_spec.rb
contentful-1.0.2 spec/deleted_entry_spec.rb
contentful-1.0.1 spec/deleted_entry_spec.rb
contentful-1.0.0 spec/deleted_entry_spec.rb
contentful-0.12.0 spec/deleted_entry_spec.rb
contentful-0.11.0 spec/deleted_entry_spec.rb
contentful-0.10.0 spec/deleted_entry_spec.rb
contentful-0.9.0 spec/deleted_entry_spec.rb