Sha256: 33ce16cded4fd2f7a824c607f6984d26eb70efd30ec4a4452830bb07d6e280bf
Contents?: true
Size: 737 Bytes
Versions: 4
Compression:
Stored size: 737 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
soaspec-0.0.9 | lib/soaspec/tester.rb |
soaspec-0.0.8 | lib/soaspec/tester.rb |
soaspec-0.0.7 | lib/soaspec/tester.rb |
soaspec-0.0.6 | lib/soaspec/tester.rb |