Sha256: 9e589f4c4bd84997fb3198ff3a85623d47ff1b87baf3a4151b918ac9beb4b95f

Contents?: true

Size: 452 Bytes

Versions: 15

Compression:

Stored size: 452 Bytes

Contents

require_relative "./helpers"

describe Spinebox::Command do

  it "should store commands" do
    Spinebox::Command.dispatch do
      on "--test, -t", "A test case", :if => proc { true } do
        
      end
      
      on "--test2, -t2", "A test case 2", :if => proc { true } do
        
      end
    end
    
    Spinebox::Command.commands.should have(2).command
  end
  
  it "should execute commands" do
    Spinebox::Command.execute
  end
  
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
spinebox-0.0.15 spec/command_spec.rb
spinebox-0.0.14 spec/command_spec.rb
spinebox-0.0.13 spec/command_spec.rb
spinebox-0.0.12 spec/command_spec.rb
spinebox-0.0.11 spec/command_spec.rb
spinebox-0.0.10 spec/command_spec.rb
spinebox-0.0.9 spec/command_spec.rb
spinebox-0.0.8 spec/command_spec.rb
spinebox-0.0.7 spec/command_spec.rb
spinebox-0.0.6 spec/command_spec.rb
spinebox-0.0.5 spec/command_spec.rb
spinebox-0.0.4 spec/command_spec.rb
spinebox-0.0.3 spec/command_spec.rb
spinebox-0.0.2 spec/command_spec.rb
spinebox-0.0.1 spec/command_spec.rb