spec/miu/subscriber_spec.rb in miu-0.2.0 vs spec/miu/subscriber_spec.rb in miu-0.2.1
- old
+ new
@@ -1,17 +1,8 @@
require 'spec_helper'
require 'celluloid/zmq'
describe Miu::Subscriber do
- shared_examples 'subscribable socket' do
- let(:sub) { Miu::Subscriber.new(:socket => base) }
-
- it { expect(sub).to be_kind_of(base) }
- it { expect(sub).to be_kind_of(Miu::Subscribable) }
- it { expect(sub).to be_kind_of(Miu::Subscriber) }
- it { expect(sub).to be_respond_to(:connect, :read) }
- end
-
context 'miu socket' do
it_should_behave_like 'subscribable socket' do
let(:base) { Miu::SubSocket }
end
end