Sha256: d5b88ce722754f24b633ea3681247dc6d8d41f0a3115e479215bd26994182503

Contents?: true

Size: 528 Bytes

Versions: 88

Compression:

Stored size: 528 Bytes

Contents

# -*- encoding: utf-8 -*-

require 'test_helper'
require 'hexapdf/document'
require 'hexapdf/type/actions/launch'

describe HexaPDF::Type::Actions::Launch do
  before do
    @doc = HexaPDF::Document.new
    @action = HexaPDF::Type::Actions::Launch.new({}, document: @doc)
  end

  describe "validation" do
    it "needs a launch target" do
      refute(@action.validate)

      @action.value = {F: {}}
      assert(@action.validate)

      @action.value = {Win: {F: "test.exe"}}
      assert(@action.validate)
    end
  end
end

Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
hexapdf-0.47.0 test/hexapdf/type/actions/test_launch.rb
hexapdf-0.46.0 test/hexapdf/type/actions/test_launch.rb
hexapdf-0.45.0 test/hexapdf/type/actions/test_launch.rb
hexapdf-0.44.0 test/hexapdf/type/actions/test_launch.rb
hexapdf-0.41.0 test/hexapdf/type/actions/test_launch.rb
hexapdf-0.40.0 test/hexapdf/type/actions/test_launch.rb
hexapdf-0.39.1 test/hexapdf/type/actions/test_launch.rb
hexapdf-0.39.0 test/hexapdf/type/actions/test_launch.rb
hexapdf-0.38.0 test/hexapdf/type/actions/test_launch.rb
hexapdf-0.37.2 test/hexapdf/type/actions/test_launch.rb
hexapdf-0.37.1 test/hexapdf/type/actions/test_launch.rb
hexapdf-0.37.0 test/hexapdf/type/actions/test_launch.rb
hexapdf-0.36.0 test/hexapdf/type/actions/test_launch.rb
hexapdf-0.35.1 test/hexapdf/type/actions/test_launch.rb
hexapdf-0.35.0 test/hexapdf/type/actions/test_launch.rb
hexapdf-0.34.1 test/hexapdf/type/actions/test_launch.rb
hexapdf-0.34.0 test/hexapdf/type/actions/test_launch.rb
hexapdf-0.33.0 test/hexapdf/type/actions/test_launch.rb
hexapdf-0.32.2 test/hexapdf/type/actions/test_launch.rb
hexapdf-0.32.1 test/hexapdf/type/actions/test_launch.rb