Sha256: 6e05795c7491a9da9ba60e58104d9978b41ed9c92f882438ee817f7dd31aba66

Contents?: true

Size: 712 Bytes

Versions: 38

Compression:

Stored size: 712 Bytes

Contents

require 'spec_helper'

describe Contentful::Space do
  let(:space) { vcr('space') { create_client.space } }

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

    it 'has #id' do
      expect(space.id).to eq 'cfexampleapi'
    end

    it 'has #type' do
      expect(space.type).to eq 'Space'
    end
  end

  describe 'Properties' do
    it 'has #name' do
      expect(space.name).to eq 'Contentful Example API'
    end

    it 'has #locales' do
      expect(space.locales).to be_a Array
      expect(space.locales.first).to be_a Contentful::Locale
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
contentful-2.16.0 spec/space_spec.rb
contentful-2.15.4 spec/space_spec.rb
contentful-2.15.3 spec/space_spec.rb
contentful-2.15.2 spec/space_spec.rb
contentful-2.15.1 spec/space_spec.rb
contentful-2.15.0 spec/space_spec.rb
contentful-2.14.0 spec/space_spec.rb
contentful-2.13.3 spec/space_spec.rb
contentful-2.13.2 spec/space_spec.rb
contentful-2.13.1 spec/space_spec.rb
contentful-2.13.0 spec/space_spec.rb
contentful-2.12.0 spec/space_spec.rb
contentful-2.11.1 spec/space_spec.rb
contentful-2.11.0 spec/space_spec.rb
contentful-2.10.1 spec/space_spec.rb
contentful-2.10.0 spec/space_spec.rb
contentful-2.9.4 spec/space_spec.rb
contentful-2.9.3 spec/space_spec.rb
contentful-2.9.2 spec/space_spec.rb
contentful-2.9.1 spec/space_spec.rb