Sha256: 87f4e418e9b22cd796c11e94474ccb56a280b43d95b76e67b1d861ff0dcdbf93

Contents?: true

Size: 870 Bytes

Versions: 3

Compression:

Stored size: 870 Bytes

Contents

Feature: Routing observed data without matching tags

  In order to use Observed when the user's user-case is too simple that even tags are not needed
  I want to write configs with reporters which have no regexp patterns to match observed data

  Scenario: Create a .rb file containing Observed configuration and run it with the observed-oneshot command
    Given a file named "test.rb" with:
    """
    require 'observed'

    include Observed

    class Test < Observed::Observer
      plugin_name 'test'
      def observe
        system.report(tag, {foo:1})
      end
    end

    observe_then_report = (observe 'foo', via: 'test')
      .then(report via: 'stdout')

    observe_then_report.now
    """
    When I run `ruby test.rb`
    Then the output should contain:
    """
    {:foo=>1}
    """
    Then the output should not contain:
    """
    Error
    """

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
observed-0.2.0 features/explicit_routing.feature
observed-0.2.0.rc2 features/explicit_routing.feature
observed-0.2.0.rc1 features/explicit_routing.feature