Sha256: 41485023f27f11b5b687d1ad69c171d85350ae662c47ad1f8a6d49306f255a2d

Contents?: true

Size: 452 Bytes

Versions: 5

Compression:

Stored size: 452 Bytes

Contents

require 'spec_helper'
describe "Quickl.super_command" do

  subject{ Quickl.super_command(cmd) }
  
  describe "on a command class" do
    let(:cmd){ MiniClient::Say::Hello }
    it{ should eq(MiniClient::Say) }
  end
  
  describe "on a command instance" do
    let(:cmd){ MiniClient::Say::Hello.new }
    it{ should eq(MiniClient::Say) }
  end
  
  describe "with no super command" do
    let(:cmd){ MiniClient }
    it{ should be_nil }
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

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