Sha256: b11e5bf51fa297f49b6af0597129dda50d13f22f89ab475b04e075eacea5dba6
Contents?: true
Size: 772 Bytes
Versions: 7
Compression:
Stored size: 772 Bytes
Contents
Feature: Observe Web services via HTTP In order to observe Web services using Observed, I want to the observed-http plugin to send HTTP request and report the result via reporters Scenario: Create a .rb file containing Observed code and run it with the ruby command Given a file named "test.rb" with: """ require 'observed' require 'observed/http' include Observed observe 'foo_1', via: 'http', with: { method: 'get', url: 'http://google.com', timeout_in_milliseconds: 1000 } report /foo_\d+/, via: 'stdout' run 'foo_1' """ When I run `ruby test.rb` Then the output should contain: """ foo_1.success """ Then the output should contain: """ Get http://google.com """
Version data entries
7 entries across 7 versions & 2 rubygems