Sha256: 55b51bda95bc990243885c5d16dbaee2365f85934d65a2744c3138340ae61120
Contents?: true
Size: 727 Bytes
Versions: 1
Compression:
Stored size: 727 Bytes
Contents
require 'spec_helper' require 'rspec/bdd' RSpec.feature 'Reading a library' do given(:client) { Typekit::Client.new(token: token) } shared_scenarios 'Adequate behavior' do options = { vcr: { cassette_name: 'show_libraries_xxx_ok' } } scenario 'Success', options do expect(library).to be_kind_of(Typekit::Record::Library) expect(library.families.map(&:class).uniq).to \ contain_exactly(Typekit::Record::Family) end end context 'Using Client' do given(:library) { client.show(:libraries, 'xxx') } include_scenarios 'Adequate behavior' end context 'Using Record' do given(:library) { client::Library.find('xxx') } include_scenarios 'Adequate behavior' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
typekit-client-0.0.6 | spec/feature/show_library_spec.rb |