Sha256: a1512eeea2339d25d09000e7d6c6d1aae59351c9b2c995b230ab825482446474
Contents?: true
Size: 572 Bytes
Versions: 3
Compression:
Stored size: 572 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
contentful-0.3.4 | spec/locale_spec.rb |
contentful-0.3.3 | spec/locale_spec.rb |
contentful-0.3.2 | spec/locale_spec.rb |