Class: Capsium::Package::Testing::Context

Inherits:
Data
  • Object
show all
Defined in:
lib/capsium/package/testing/context.rb,
sig/capsium/package/testing/context.rbs

Overview

What a test run needs: the extracted package directory and, when route tests run, the base URL of the reactor serving the package.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeContext

Returns a new instance of Context.

Parameters:



10
# File 'sig/capsium/package/testing/context.rbs', line 10

def initialize: (package_path: String package_path, base_url: String? base_url) -> void

Instance Attribute Details

#base_urlObject (readonly)

Returns the value of attribute base_url

Returns:

  • (Object)

    the current value of base_url



8
9
10
# File 'lib/capsium/package/testing/context.rb', line 8

def base_url
  @base_url
end

#package_pathObject (readonly)

Returns the value of attribute package_path

Returns:

  • (Object)

    the current value of package_path



8
9
10
# File 'lib/capsium/package/testing/context.rb', line 8

def package_path
  @package_path
end