Sha256: 7a489ff39e5108bd3c41c18efaf7e0d4adde62f733ad87d39df4cc0d466af489
Contents?: true
Size: 667 Bytes
Versions: 1
Compression:
Stored size: 667 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} """
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
observed-0.1.1 | features/oneshot.feature |