Sha256: 1dfc6492a5452ed39afadc6565a2a8d3f4429d2e3d81fe87e25eb66aa55bd946

Contents?: true

Size: 780 Bytes

Versions: 8

Compression:

Stored size: 780 Bytes

Contents

Feature: Configure location format

  You can change the format which Kernel#ql uses to print the source
  location.  By default, just the filename is printed, but you can
  cause the full path. to be printed instead.

  Scenario: Write full path
    Given a file named "example.rb" with:
      """
      require "cute_print"

      CutePrint.configure do |c|
        c.location_format = :path
      end

      ql 123
      """
    Then stderr should be
    """
    /tmp/.../example.rb:7: 123

    """

  Scenario: Write filename
    Given a file named "example.rb" with:
      """
      require "cute_print"

      CutePrint.configure do |c|
        c.location_format = :filename
      end

      ql 123
      """
    Then stderr should be
    """
    example.rb:7: 123

    """

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cute_print-1.1.4 features/configuring/configure_position_format.feature
cute_print-1.1.3 features/configuring/configure_position_format.feature
cute_print-1.1.2 features/configuring/configure_position_format.feature
cute_print-1.1.1 features/configuring/configure_position_format.feature
cute_print-1.1.0 features/configuring/configure_position_format.feature
cute_print-1.0.1 features/configuring/configure_position_format.feature
cute_print-1.0.0 features/configuring/configure_position_format.feature
cute_print-0.4.0 features/configuring/configure_position_format.feature