// Copyright 2014, Renasar Technologies Inc.
/* jshint node:true */

'use strict';

describe(require('path').basename(__filename), function () {
    it('needs specs');
});
@@ -90,80 +90,1668 @@
 ibe(
-require('path').basename(__filename), function () %7B%0A
+'Subscription', function () %7B%0A    var Subscription;%0A    %0A    helper.before();%0A%0A    before(function () %7B%0A        Subscription = helper.injector.get('Subscription');%0A%0A        this.messenger = %7B%0A            cancel: sinon.stub().returns(%0A                Q.resolve()%0A            ),%0A            deleteQueue: sinon.stub().returns(%0A                Q.resolve()%0A            )%0A        %7D%0A%0A        this.subject = new Subscription(%0A            this.messenger,%0A            %7B%0A                consumerTag: 'consumerTag',%0A                queue: 'queue'%0A            %7D%0A        );%0A    %7D)%0A%0A    helper.after();%0A%0A    describe('constructor', function () %7B%0A        it('assigns messenger to messenger', function () %7B%0A            this.subject.messenger.should.deep.equal(this.messenger);%0A        %7D);%0A%0A        it('assigns options to options', function () %7B%0A            this.subject.options.should.deep.equal(%7B%0A                consumerTag: 'consumerTag',%0A                queue: 'queue'%0A            %7D);%0A        %7D);%0A%0A        %5B%0A            'queue',%0A            'consumerTag'%0A        %5D.forEach(function (property) %7B%0A        
     it
+ 
 ('
-needs specs'
+provides a ' + property + ' accessor', function () %7B%0A                this.subject%5Bproperty%5D.should.equal(property);%0A            %7D);%0A        %7D);%0A    %7D);%0A%0A    describe('dispose', function () %7B%0A        it('should call messenger.cancel and messenger.deleteQueue', function () %7B%0A            var self = this;%0A%0A            return this.subject.dispose().then(function () %7B%0A                self.messenger.cancel.should.have.been.calledWith('consumerTag');%0A                self.messenger.deleteQueue.should.have.been.calledWith('queue');%0A            %7D);%0A        %7D);%0A    %7D
 );%0A%7D

add subscription tests