Sha256: 814725fd9f266fbf388bedbfb66d7e7b849b08b13443b12707e9ef0e6bf3dafd
Contents?: true
Size: 706 Bytes
Versions: 1
Compression:
Stored size: 706 Bytes
Contents
require 'yaml' require_relative 'common' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
soaspec-0.0.5 | lib/soaspec/tester.rb |