Sha256: 69cc59053cd0c15576e04aa129098f852efa3ea3d942a5c6439338a14adf7a97
Contents?: true
Size: 733 Bytes
Versions: 3
Compression:
Stored size: 733 Bytes
Contents
Feature: Be testable in a single command In order to try Observed to see the basic usage usage of it, I want to write a config file and test it by running Observed in a single command Scenario: Create a .rb file containing Observed configuration and run it with the observed-oneshot command Given a file named "test.rb" with: """ class Test < Observed::Observer plugin_name 'test' def observe system.report(tag, {foo:1}) end end observe 'foo', via: 'test' report /foo/, via: 'stdout' """ When I run `observed-oneshot -d test.rb` Then the output should contain: """ foo {: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/oneshot.feature |
observed-0.2.0.rc2 | features/oneshot.feature |
observed-0.2.0.rc1 | features/oneshot.feature |