Sha256: a98c1b8c0971b9924572ae5c57aad6691d8f0fbafa13e36814cf947931b91ad1
Contents?: true
Size: 928 Bytes
Versions: 5
Compression:
Stored size: 928 Bytes
Contents
require 'spec_helper' describe VMC::Service::Bind do describe 'metadata' do let(:command) { Mothership.commands[:bind_service] } describe 'command' do subject { command } its(:description) { should eq "Bind a service to 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 |_, 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