Sha256: f487f4ae21bc4c5dbb853e0ff2733676b1e838d386e9e990cb614b28a89713fb
Contents?: true
Size: 675 Bytes
Versions: 1
Compression:
Stored size: 675 Bytes
Contents
require 'spec_helper' describe 'CrashHook::Crash' do it 'raises error if no configuration were provided' do proc { CrashHook::Crash.new(nil) }. should raise_error ArgumentError, "CrashHook::Configuration required!" end it 'raises error if no exception were provided' do proc { CrashHook::Crash.new(sample_configuration) }. should raise_error ArgumentError, "Exception required!" end it 'raises error if no environment configuration were provided' do e = ArgumentError.new("Sample message") proc { CrashHook::Crash.new(sample_configuration, e, nil) }. should raise_error ArgumentError, "Environment required!" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
crash_hook-0.2.0 | spec/crash_spec.rb |