Sha256: f56b5eff24016aeeb25b245d0c4eecb5da60a0070e6c03df3a54e79ffc6f40ce

Contents?: true

Size: 335 Bytes

Versions: 5

Compression:

Stored size: 335 Bytes

Contents

require "spec_helper"
describe "Quickl#command_name" do

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

Version data entries

5 entries across 5 versions & 1 rubygems

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