Sha256: 6ad8911c2930778abb6f44bbb4494f0ebe56fa654cbef434e4acb41cd835ccb5

Contents?: true

Size: 474 Bytes

Versions: 5

Compression:

Stored size: 474 Bytes

Contents

# encoding: utf-8
#
# Copyright September 2016, Jesse Doyle. All rights reserved.
#
# This is free software. Please see the LICENSE and COPYING files for details.

describe Prawn::Icon::Errors::IconNotFound do
  let(:pdf) { create_pdf }

  it 'is a StandardError' do
    expect(subject).to be_a(StandardError)
  end

  it 'is thrown on an invalid icon key' do
    proc = Proc.new { pdf.icon 'far-an invalid key' }

    expect(proc).to raise_error(described_class)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
prawn-icon-2.4.0 spec/unit/errors/icon_not_found_spec.rb
prawn-icon-2.3.0 spec/unit/errors/icon_not_found_spec.rb
prawn-icon-2.2.0 spec/unit/errors/icon_not_found_spec.rb
prawn-icon-2.1.0 spec/unit/errors/icon_not_found_spec.rb
prawn-icon-2.0.0 spec/unit/errors/icon_not_found_spec.rb