Sha256: a72a122a9201a80b8e64d9dcf31813155dff9bd49838c018b8f6007b6766ce7a
Contents?: true
Size: 710 Bytes
Versions: 2
Compression:
Stored size: 710 Bytes
Contents
require 'yaml' module Soaspec # Has basic methods common for methods defining RSpec tests in YAML class Tester attr_reader :template_name # Load default groups. Set name def initialize(name, options) @name = name end def template_name=(name) @request_option = :template @template_name = name end protected # Log API request and response traffic in 'logs/traffic.log' # @return [Logger] Ruby logger that will log to 'logs/traffic.log' def file_logger logger = Logger.new('logs/traffic.log') # Where request and responses of APIs are stored logger.level = Logger::DEBUG logger end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
soaspec-0.0.11 | lib/soaspec/tester.rb |
soaspec-0.0.10 | lib/soaspec/tester.rb |