Sha256: ff31a4eb588518a98e861614efc61373a63a281166fccf35c52085cd0c23e510
Contents?: true
Size: 802 Bytes
Versions: 10
Compression:
Stored size: 802 Bytes
Contents
require 'spec_helper' describe Contentful::Field do let(:field){ vcr('field'){ create_client.content_type('cat').fields.first } } describe 'Properties' do it 'has a #properties getter returning a hash with symbol keys' do expect( field.properties ).to be_a Hash expect( field.properties.keys.sample ).to be_a Symbol end it 'has #id' do expect( field.id ).to eq "name" end it 'has #name' do expect( field.name ).to eq "Name" end it 'has #type' do expect( field.type ).to eq "Text" end it 'could have #items' do expect( field ).to respond_to :items end it 'has #required' do expect( field.required ).to be_true end it 'has #localized' do expect( field.required ).to be_true end end end
Version data entries
10 entries across 10 versions & 1 rubygems