Sha256: ede31d166ad71e6ba3b9efeeb9f6e590bbea86bce5e9ccc332ab9c589b04f62d

Contents?: true

Size: 380 Bytes

Versions: 14

Compression:

Stored size: 380 Bytes

Contents

require 'spec_helper'

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

  describe 'Properties' do
    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

14 entries across 14 versions & 1 rubygems

Version Path
contentful-2.5.0 spec/locale_spec.rb
contentful-2.4.0 spec/locale_spec.rb
contentful-2.3.0 spec/locale_spec.rb
contentful-2.2.2 spec/locale_spec.rb
contentful-2.2.1 spec/locale_spec.rb
contentful-2.2.0 spec/locale_spec.rb
contentful-2.1.3 spec/locale_spec.rb
contentful-2.1.2 spec/locale_spec.rb
contentful-2.1.1 spec/locale_spec.rb
contentful-2.1.0 spec/locale_spec.rb
contentful-2.0.3 spec/locale_spec.rb
contentful-2.0.2 spec/locale_spec.rb
contentful-2.0.1 spec/locale_spec.rb
contentful-2.0.0 spec/locale_spec.rb