░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/vendor/bundle/ruby/3.1.0/gems/prawn-2.4.0/spec
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: spec_helper.rb
# frozen_string_literal: true puts "Prawn specs: Running on Ruby Version: #{RUBY_VERSION}" if ENV['COVERAGE'] require 'simplecov' SimpleCov.start do add_filter '/spec/' end end require_relative '../lib/prawn' Prawn.debug = true Prawn::Fonts::AFM.hide_m17n_warning = true require 'rspec' require 'pdf/reader' require 'pdf/inspector' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/extensions/ and its subdirectories. Dir[File.join(__dir__, 'extensions', '**', '*.rb')].sort.each { |f| require f } RSpec.configure do |config| config.include EncodingHelpers end def create_pdf(klass = Prawn::Document, &block) klass.new(margin: 0, &block) end RSpec::Matchers.define :have_parseable_xobjects do match do |actual| expect { PDF::Inspector::XObject.analyze(actual.render) }.to_not raise_error true end failure_message do |actual| "expected that #{actual}'s XObjects could be successfully parsed" end end # Make some methods public to assist in testing # module Prawn # module Graphics # public :map_to_absolute # end # end
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📁 data/
DIR
—
2023-09-24 03:48
📁 extensions/
DIR
—
2023-09-24 03:48
📁 prawn/
DIR
—
2023-09-24 03:48
📄 prawn_manual_spec.rb
RB
1 KB
2023-09-24 03:48
EDIT
📄 spec_helper.rb
RB
1.1 KB
2023-09-24 03:48
EDIT