Sha256: 503b1afa496d4816030fee6c64e0d333151abfc247d5485d87a301a3b8e7d5d4

Contents?: true

Size: 727 Bytes

Versions: 5

Compression:

Stored size: 727 Bytes

Contents

require 'spec_helper'

describe DispatchRider::NotificationServices::FileSystem do

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

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dispatch-rider-1.5.3 spec/lib/dispatch-rider/notification_services/file_system_spec.rb
dispatch-rider-1.5.2 spec/lib/dispatch-rider/notification_services/file_system_spec.rb
dispatch-rider-1.5.1 spec/lib/dispatch-rider/notification_services/file_system_spec.rb
dispatch-rider-1.5.0 spec/lib/dispatch-rider/notification_services/file_system_spec.rb
dispatch-rider-1.4.2 spec/lib/dispatch-rider/notification_services/file_system_spec.rb