Sha256: 208e332f3a3c62c4e08c9eff82ef3ee94e8545ad9880cc08dd759cfff024c505

Contents?: true

Size: 395 Bytes

Versions: 12

Compression:

Stored size: 395 Bytes

Contents

require "bundler/setup"
Bundler.require

DocRaptor.configure do |dr|
  dr.username  = "YOUR_API_KEY_HERE"
  # dr.debugging = true
end

$docraptor = DocRaptor::DocApi.new

begin
  $docraptor.create_doc(
    test:          true,
    name:          "s" * 201, # limit is 200 characters
    document_type: "pdf",
  )
rescue DocRaptor::ApiError
  exit
end

abort "Exception expected, but not raised"

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
docraptor-3.1.0 test/invalid_sync.rb
docraptor-3.0.0 test/invalid_sync.rb
docraptor-2.0.0 test/invalid_sync.rb
docraptor-1.4.0 test/invalid_sync.rb
docraptor-1.3.0 test/invalid_sync.rb
docraptor-1.2.0 test/invalid_sync.rb
docraptor-1.2.0beta1 test/invalid_sync.rb
docraptor-1.1.0 test/invalid_sync.rb
docraptor-1.0.0 test/invalid_sync.rb
docraptor-0.4.0 test/invalid_sync.rb
docraptor-0.3.0 test/invalid_sync.rb
docraptor-0.2.0 test/invalid_sync.rb