Sha256: 425633fd0968fb607cdc9cd1899160b791db28bddeddd6b585416cdb28b4336a

Contents?: true

Size: 376 Bytes

Versions: 1

Compression:

Stored size: 376 Bytes

Contents

# frozen_string_literal: true

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

1 entries across 1 versions & 1 rubygems

Version Path
dispatch-rider-2.2.0 spec/lib/dispatch-rider/registrars/handler_spec.rb