Sha256: 2c1dad45e519c05aadd64f0f1e7ddcf67573cf570f176d5e29571878f500c9d8

Contents?: true

Size: 758 Bytes

Versions: 1

Compression:

Stored size: 758 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'spec_helper'

module OnStomp::Components
  describe NilProcessor do
    let(:client) { mock('client') }
    let(:processor) { NilProcessor.new client }
    
    describe ".start" do
      it "should return itself" do
        processor.start.should == processor
      end
    end
    describe ".stop" do
      it "should return itself" do
        processor.stop.should == processor
      end
    end
    describe ".join" do
      it "should return itself" do
        processor.join.should == processor
      end
    end
    describe ".running?" do
      it "should never be running" do
        processor.running?.should be_false
        processor.start
        processor.running?.should be_false
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
onstomp-1.0.0pre1 spec/onstomp/components/nil_processor_spec.rb