Sha256: b5ea0633744c44f9f630af42504ac393387c6cc1dc28e44be9f3745896fce85c

Contents?: true

Size: 353 Bytes

Versions: 5

Compression:

Stored size: 353 Bytes

Contents

require "spec_helper"
describe "Quickl#usage" do

  subject{ Quickl.usage(cmd) }
  
  describe "on a command class" do
    let(:cmd){ MiniClient::Say::Hello }
    it{ should eq("mini-client say:hello") }
  end
  
  describe "on a command instance" do
    let(:cmd){ MiniClient::Say::Hello.new }
    it{ should eq("mini-client say:hello") }
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
quickl-0.4.3 spec/quickl/test_usage.rb
quickl-0.4.2 spec/quickl/test_usage.rb
quickl-0.4.1 spec/quickl/test_usage.rb
quickl-0.4.0 spec/quickl/test_usage.rb
quickl-0.3.0 spec/quickl/test_usage.rb