Sha256: 6d86d7e7ffc1a7cda3ef454fa76950ba25d9d37e7f885f8fc88bbb99cd2d1b53
Contents?: true
Size: 698 Bytes
Versions: 2
Compression:
Stored size: 698 Bytes
Contents
require File.expand_path('../../spec_helper', __FILE__) module Quickl describe "Command::run /" do it "when invoked on a terminal command" do MiniClient::Say::Hello.run.should == :hello MiniClient::Say::Goodbye.run.should == :goodbye end it "when invoked on a delegator command" do MiniClient.run(["help"]).should == :help MiniClient::Say.run(["hello"]).should == :hello MiniClient::Say.run(["goodbye"]).should == :goodbye end it "when invoked on qualified command names" do MiniClient.run(["say:hello"]).should == :hello MiniClient.run(["say:goodbye"]).should == :goodbye end end # Command::command end # module Quickl
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
quickl-0.2.2 | spec/command/run_spec.rb |
quickl-0.2.1 | spec/command/run_spec.rb |