Sha256: a8200ce8b7b7ba1fc8ab21b50a0a20bf80e34f00da7bbcaf95e0853887229692
Contents?: true
Size: 642 Bytes
Versions: 4
Compression:
Stored size: 642 Bytes
Contents
### FOR GENERIC NON-RAILS TESTS require 'test_helper' require 'pdf/reader' class PrawnRailsTest < ActiveSupport::TestCase include PrawnRails::RailsHelper test "text can take non strings" do output = prawn_document do |pdf| pdf.text "Number:" pdf.text 10 end reader = PDF::Reader.new(StringIO.new(output)) assert_not_nil(reader) page = reader.page(1).to_s assert page.include?("Number:\n10") end test "matches .PDF extension regardless of case" do ["pDf", "pdf", "PDF"].each do |ext| @filename = "test.#{ext}" assert_equal get_metadata[:info][:Title], "test" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
prawn-rails-1.4.2 | test/prawn_rails_test.rb |
prawn-rails-1.4.1 | test/prawn_rails_test.rb |
prawn-rails-1.4.0 | test/prawn_rails_test.rb |
prawn-rails-1.3.0 | test/prawn_rails_test.rb |