Sha256: 2c2beccef3ff7df6fc04cf53ea6c44be8b2c4ed31e9ee03b2e869f4c2f9ee179

Contents?: true

Size: 455 Bytes

Versions: 3

Compression:

Stored size: 455 Bytes

Contents

Feature: Custom printer
  Scenario: define a custom printer and use it
    Given I have the following code:
    """
    require 'tapp/printer'

    module Tapp::Printer
      class MyPrinter < Base
        def print(*args)
          puts "*** #{args.join(' ')} ***"
        end
      end

      register :my_printer, MyPrinter
    end

    %w(foo bar).tapp(:my_printer)
    """

    When Ruby it
    Then I should see:
    """
    *** foo bar ***
    """

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tapp-1.5.1 spec/acceptance/custom_printer.feature
tapp-1.5.0 spec/acceptance/custom_printer.feature
tapp-1.5.0.rc spec/acceptance/custom_printer.feature