Sha256: 7c0aa8b1ca54ecbf21448eef13f228b328056f7ea60288b578ecbf83d0fc5451

Contents?: true

Size: 299 Bytes

Versions: 14

Compression:

Stored size: 299 Bytes

Contents

require "spec_helper"

describe DispatchRider::DefaultErrorHandler do

  describe ".call" do
    let(:exception) { Exception.new("Something went terribly wrong") }
    example do
      expect {
        described_class.call("Error", exception)
      }.to raise_exception exception
    end
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
dispatch-rider-1.9.0 spec/lib/dispatch-rider/default_error_handler_spec.rb
dispatch-rider-1.8.6 spec/lib/dispatch-rider/default_error_handler_spec.rb
dispatch-rider-1.8.5 spec/lib/dispatch-rider/default_error_handler_spec.rb
dispatch-rider-1.8.4 spec/lib/dispatch-rider/default_error_handler_spec.rb
dispatch-rider-1.8.3 spec/lib/dispatch-rider/default_error_handler_spec.rb
dispatch-rider-1.8.2 spec/lib/dispatch-rider/default_error_handler_spec.rb
dispatch-rider-1.8.1 spec/lib/dispatch-rider/default_error_handler_spec.rb
dispatch-rider-1.8.0 spec/lib/dispatch-rider/default_error_handler_spec.rb
dispatch-rider-1.7.2 spec/lib/dispatch-rider/default_error_handler_spec.rb
dispatch-rider-1.7.1 spec/lib/dispatch-rider/default_error_handler_spec.rb
dispatch-rider-1.7.0 spec/lib/dispatch-rider/default_error_handler_spec.rb
dispatch-rider-1.6.2 spec/lib/dispatch-rider/default_error_handler_spec.rb
dispatch-rider-1.6.1 spec/lib/dispatch-rider/default_error_handler_spec.rb
dispatch-rider-1.6.0 spec/lib/dispatch-rider/default_error_handler_spec.rb