Sha256: f1d666fd11ea9eedbc75ab5309e4bbe262a718580c5a2cce79321ed6048c77b6

Contents?: true

Size: 564 Bytes

Versions: 18

Compression:

Stored size: 564 Bytes

Contents

require 'spec_helper'

describe Contentful::Locale do
  let(:locale) { vcr('locale') { create_client.space.locales.first } }

  describe 'Properties' do
    it 'has a #properties getter returning a hash with symbol keys' do
      expect(locale.properties).to be_a Hash
      expect(locale.properties.keys.sample).to be_a Symbol
    end

    it 'has #code' do
      expect(locale.code).to eq 'en-US'
    end

    it 'has #name' do
      expect(locale.name).to eq 'English'
    end

    it 'has #default' do
      expect(locale.default).to eq true
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
contentful-1.2.2 spec/locale_spec.rb
contentful-1.2.1 spec/locale_spec.rb
contentful-1.2.0 spec/locale_spec.rb
contentful-1.1.1 spec/locale_spec.rb
contentful-1.1.0 spec/locale_spec.rb
contentful-1.0.2 spec/locale_spec.rb
contentful-1.0.1 spec/locale_spec.rb
contentful-1.0.0 spec/locale_spec.rb
contentful-0.12.0 spec/locale_spec.rb
contentful-0.11.0 spec/locale_spec.rb
contentful-0.10.0 spec/locale_spec.rb
contentful-0.9.0 spec/locale_spec.rb
contentful-0.8.0 spec/locale_spec.rb
contentful-0.7.0 spec/locale_spec.rb
contentful-0.6.0 spec/locale_spec.rb
contentful-0.5.0 spec/locale_spec.rb
contentful-0.4.0 spec/locale_spec.rb
contentful-0.3.5 spec/locale_spec.rb