Sha256: f7c4cecdf8aea62540205f063a93a6ee345368d8e80b6134001435d4f8b8c362

Contents?: true

Size: 345 Bytes

Versions: 16

Compression:

Stored size: 345 Bytes

Contents

require 'spec_helper'

describe DispatchRider::Registrars::Handler do
  module CustomTestHandler
  end

  subject do
    described_class.new
  end

  describe "#value" do
    it "returns the value for the key/value pair while registering a handler" do
      expect(subject.value(:custom_test_handler)).to eq(CustomTestHandler)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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