Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: bb23f8dfc8
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (23 sloc) 1.043 kb
require 'spec_helper'
require "logger"
module Ramon
# Works only when the Amon application is started
describe 'Web app http test' do
it 'Test logging' do
Ramon.configure do |config|
config.address = 'http://127.0.0.1:2465'
config.secret_key = "u6ljlx2glnf8xq45ut1etkpxghmjpe3e"
config.logger = Logger.new(STDOUT)
end
Ramon.log([1,2,3,4]).response.code.should == "200"
Ramon.log({:test => 'data', :more_test => 'more_data'}).response.code.should == "200"
end
it 'Test logging with multiple tags' do
Ramon.log("test", ['debug', 'benchmark']).response.code.should == "200"
Ramon.log({:test => 'data', :more_test => 'more_data'}, ['info','warning','user']).response.code.should == "200"
end
it 'Test Exceptions' do
Ramon.post('exception', {:url => 'test', :exception_class => 'test_me'}).response.code.should == "200"
end
end
end
Jump to Line
Something went wrong with that request. Please try again.