Sha256: 2a8fd5bc21d663d4d4601fc4f278d4ff46d314a4cc148fe9b3e5b802df904e1a

Contents?: true

Size: 429 Bytes

Versions: 4

Compression:

Stored size: 429 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::IconKeyEmpty do
  let(:pdf) { create_pdf }

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

  it 'is thrown on a missing icon key' do
    expect { pdf.icon('') }.to raise_error(described_class)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
prawn-icon-4.0.0 spec/unit/errors/icon_key_empty_spec.rb
prawn-icon-3.1.0 spec/unit/errors/icon_key_empty_spec.rb
prawn-icon-3.0.0 spec/unit/errors/icon_key_empty_spec.rb
prawn-icon-2.5.0 spec/unit/errors/icon_key_empty_spec.rb