Sha256: ea46b8e3962918c05923ade1fbd170a127d7d053434157e147496c59a8a3432e

Contents?: true

Size: 397 Bytes

Versions: 3

Compression:

Stored size: 397 Bytes

Contents

require 'shared_examples_for_handlers'

describe Shutterbug::Handlers::ErrorTrigger do
  let(:handler) { described_class.new }
  let(:rackapp) {}
  let(:req)     {}
  let(:env)     {}

  it "thorws an excpetion" do
      described_class.regex.should match "/shutterbug/error/foo"
      handler.should respond_to :handle
      expect { handler.handle(rackapp, req, env) }.to raise_error
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shutterbug-0.5.9 spec/shutterbug/error_trigger_spec.rb
shutterbug-0.5.8 spec/shutterbug/error_trigger_spec.rb
shutterbug-0.5.7 spec/shutterbug/error_trigger_spec.rb