Sha256: a34b9dca89063d6754dea32d3e853f537a1d5d1ae1063f1bbabcc33db21389b6
Contents?: true
Size: 649 Bytes
Versions: 2
Compression:
Stored size: 649 Bytes
Contents
$: << File.join(File.dirname(__FILE__), '..', 'lib') require 'rubygems' require 'spec' require 'request_log_analyzer' module RequestLogAnalyzerSpecHelper def format_file(format) File.dirname(__FILE__) + "/file_formats/#{format}.rb" end def spec_format @spec_format ||= begin require format_file(:spec_format) SpecFormat.new end end def log_fixture(name) File.dirname(__FILE__) + "/fixtures/#{name}.log" end def request(fields, format = spec_format) if fields.kind_of?(Array) format.create_request(*fields) else format.create_request(fields) end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
wvanbergen-request-log-analyzer-1.1.1 | spec/spec_helper.rb |
request-log-analyzer-1.1.1 | spec/spec_helper.rb |