Sha256: 3af46c989189a71f53cbda71537d48acb92b93c91fb8234d6e010144547f917c
Contents?: true
Size: 864 Bytes
Versions: 5
Compression:
Stored size: 864 Bytes
Contents
require 'spec_helper' describe VMC::Service::Delete do describe 'metadata' do let(:command) { Mothership.commands[:delete_service] } describe 'command' do subject { command } its(:description) { should eq "Delete a service" } 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| next if attrs[:hidden] 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 }]) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems