Sha256: d8c829db2c62cf03f956a373ad0712d8a6b7be37d6b0b2d275f9fe4001253c5b

Contents?: true

Size: 547 Bytes

Versions: 1

Compression:

Stored size: 547 Bytes

Contents

require 'spec_helper'
require 'rspec/bdd'

RSpec.feature 'Reading a variation' do
  given(:client) { Typekit::Client.new(token: token) }
  given(:variation) { client.show(:families, 'xxx', 'yyy') }

  options = { vcr: { cassette_name: 'show_families_xxx_yyy_ok' } }

  scenario 'Success', options do
    expect(variation).to be_kind_of(Typekit::Record::Variation)

    expect(variation.libraries.map(&:class).uniq).to \
      contain_exactly(Typekit::Record::Library)

    expect(variation.family).to be_kind_of(Typekit::Record::Family)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
typekit-client-0.0.6 spec/feature/show_variation_spec.rb