Sha256: ed36a0d3ac045f609cc6bc860c55db4dd6ad1857a3b6d32554e25d5285e5c339

Contents?: true

Size: 940 Bytes

Versions: 5

Compression:

Stored size: 940 Bytes

Contents

require 'spec_helper'

describe VMC::Service::Unbind do
  describe 'metadata' do
    let(:command) { Mothership.commands[:unbind_service] }

    describe 'command' do
      subject { command }
      its(:description) { should eq "Unbind a service from an application" }
      it { expect(Mothership::Help.group(:services, :manage)).to include(subject) }
    end

    describe 'inputs' do
      subject { command.inputs }

      it "is not missing any descriptions" do
        subject.each do |input, attrs|
          expect(attrs[:description]).to be
          expect(attrs[:description].strip).to_not be_empty
        end
      end
    end

    describe 'arguments' do
      subject { command.arguments }
      it 'has the correct argument order' do
        should eq([
          { :type => :optional, :value => nil, :name => :service },
          { :type => :optional, :value => nil, :name => :app }
        ])
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vmc-0.5.0.beta.5 spec/vmc/cli/service/unbind_spec.rb
vmc-0.5.0.beta.4 spec/vmc/cli/service/unbind_spec.rb
vmc-0.5.0.beta.3 spec/vmc/cli/service/unbind_spec.rb
vmc-0.5.0.beta.2 spec/vmc/cli/service/unbind_spec.rb
vmc-0.5.0.beta.1 spec/vmc/cli/service/unbind_spec.rb