Sha256: 1c1625bd36e7a8a48f8baea316da56363ec8014a4c505b6e25751918895fa3df

Contents?: true

Size: 455 Bytes

Versions: 8

Compression:

Stored size: 455 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
    proc = Proc.new { pdf.icon '' }

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
prawn-icon-2.4.0 spec/unit/errors/icon_key_empty_spec.rb
prawn-icon-2.3.0 spec/unit/errors/icon_key_empty_spec.rb
prawn-icon-2.2.0 spec/unit/errors/icon_key_empty_spec.rb
prawn-icon-2.1.0 spec/unit/errors/icon_key_empty_spec.rb
prawn-icon-2.0.0 spec/unit/errors/icon_key_empty_spec.rb
prawn-icon-1.4.0 spec/unit/errors/icon_key_empty_spec.rb
prawn-icon-1.3.0 spec/unit/errors/icon_key_empty_spec.rb
prawn-icon-1.2.0 spec/unit/errors/icon_key_empty_spec.rb