spec/notification_spec.rb in bugsnag-1.6.2 vs spec/notification_spec.rb in bugsnag-1.6.3

- old
+ new

@@ -572,6 +572,19 @@ args[3].should be == "password" end Bugsnag.notify("test message") end + + it "should set the timeout time to the value in the configuration" do |*args| + Bugsnag.configure do |config| + config.timeout = 10 + end + + Bugsnag::Notification.should_receive(:default_timeout) do |*args| + args.length.should be == 1 + args[0].should be == 10 + end + + Bugsnag.notify("test message") + end end