Sha256: 9a33f93cdafd9bb0eecbfa88f09926180ce106f42e59dac8e8a87594e846891b
Contents?: true
Size: 789 Bytes
Versions: 18
Compression:
Stored size: 789 Bytes
Contents
require 'spec_helper' describe Contentful::File do let(:file) { vcr('asset') { create_client.asset('nyancat').file } } describe 'Properties' do it 'has a #properties getter returning a hash with symbol keys' do expect(file.properties).to be_a Hash expect(file.properties.keys.sample).to be_a Symbol end it 'has #file_name' do expect(file.file_name).to eq 'Nyan_cat_250px_frame.png' end it 'has #content_type' do expect(file.content_type).to eq 'image/png' end it 'has #url' do expect(file.url).to eq '//images.contentful.com/cfexampleapi/4gp6taAwW4CmSgumq2ekUm/9da0cd1936871b8d72343e895a00d611/Nyan_cat_250px_frame.png' end it 'has #details' do expect(file.details).to be_instance_of Hash end end end
Version data entries
18 entries across 18 versions & 1 rubygems