Sha256: b3fa9f8f43f6ebe57ca142b10232420e21598e8752819cde7bd7b08129d6b53c

Contents?: true

Size: 462 Bytes

Versions: 16

Compression:

Stored size: 462 Bytes

Contents

module RequestLogAnalyzer::Spec::Macros
  
  def test_databases
    require 'yaml'
    hash = YAML.load(File.read("#{File.dirname(__FILE__)}/../database.yml"))
    hash.inject({}) { |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
    ['Warning', 'Request', 'Source']
  end

end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
wvanbergen-request-log-analyzer-1.3.0 spec/lib/macros.rb
wvanbergen-request-log-analyzer-1.3.1 spec/lib/macros.rb
wvanbergen-request-log-analyzer-1.3.2 spec/lib/macros.rb
wvanbergen-request-log-analyzer-1.3.3 spec/lib/macros.rb
wvanbergen-request-log-analyzer-1.3.4 spec/lib/macros.rb
wvanbergen-request-log-analyzer-1.3.5 spec/lib/macros.rb
wvanbergen-request-log-analyzer-1.3.6 spec/lib/macros.rb
wvanbergen-request-log-analyzer-1.3.7 spec/lib/macros.rb
request-log-analyzer-1.3.7 spec/lib/macros.rb
request-log-analyzer-1.3.6 spec/lib/macros.rb
request-log-analyzer-1.3.5 spec/lib/macros.rb
request-log-analyzer-1.3.4 spec/lib/macros.rb
request-log-analyzer-1.3.3 spec/lib/macros.rb
request-log-analyzer-1.3.2 spec/lib/macros.rb
request-log-analyzer-1.3.1 spec/lib/macros.rb
request-log-analyzer-1.3.0 spec/lib/macros.rb