Sha256: 8fd88772aac23b236a8a5d4fa978df8c6264572bea7297a000404de13c10d5d1
Contents?: true
Size: 812 Bytes
Versions: 1
Compression:
Stored size: 812 Bytes
Contents
require 'spec_helper' describe 'CrashHook::Configuration' do it 'raises an exception if no url were provided' do proc { CrashHook::Configuration.new }. should raise_error CrashHook::ConfigurationError, ":url option required!" end it 'raises an exception on invalid url method' do proc { CrashHook::Configuration.new( :url => 'http://foo.com', :method => :foo ) }.should raise_error CrashHook::ConfigurationError, "foo is not a valid :method option." end it 'has an unique list of ignored exceptions' do c = CrashHook::Configuration.new( :url => 'http://foo.com', :ignore => [ 'RuntimeError', RuntimeError ] ) c.ignore.size.should == 1 c.ignore_exception?(RuntimeError).should == true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
crash_hook-0.2.0 | spec/configuration_spec.rb |