Sha256: fa6967c77eaba782c7911257443d0c956d6cc7a376531d5379a12ce4f2d3576e
Contents?: true
Size: 450 Bytes
Versions: 2
Compression:
Stored size: 450 Bytes
Contents
module RequestLogAnalyzer::RSpec::Macros def test_databases require 'yaml' hash = YAML.load(File.read("#{File.dirname(__FILE__)}/../database.yml")) hash.reduce({}) { |res, (name, h)| res[name] = h.map { |(k, v)| "#{k}=#{v}" }.join(';'); res } end # Create or return a new TestingFormat def testing_format @testing_format ||= TestingFormat.create end def default_orm_class_names %w(Warning Request Source) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
request-log-analyzer-1.13.4 | spec/lib/macros.rb |
request-log-analyzer-1.13.3 | spec/lib/macros.rb |