Sha256: 260c0eb50cb47b76683c274d3ab2a92034c29edb352b7d327127bd5dff1f71dc

Contents?: true

Size: 738 Bytes

Versions: 16

Compression:

Stored size: 738 Bytes

Contents

require 'spec_helper'

describe DispatchRider::NotificationServices::FileSystem do
  describe "#notifier_builder" do
    it "returns the notifier builder" do
      expect(subject.notifier_builder).to eq(DispatchRider::NotificationServices::FileSystem::Notifier)
    end
  end

  describe "#channel_registrar_builder" do
    it "returns the channel registrar builder" do
      expect(subject.channel_registrar_builder).to eq(DispatchRider::Registrars::FileSystemChannel)
    end
  end

  describe "#channel" do
    it "returns the channel" do
      subject.channel_registrar.register(:foo, :path => "tmp/test/channel")
      expect(subject.channel(:foo)).to be_a(DispatchRider::NotificationServices::FileSystem::Channel)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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