Sha256: 0c89ad21d7ff76039cd82e10fd1abf04d4a0216a27bdf824a11c3cde532c485a

Contents?: true

Size: 451 Bytes

Versions: 5

Compression:

Stored size: 451 Bytes

Contents

require 'spec_helper'
module Quickl
  describe "Naming::command2module /" do
    include Naming
    
    it "should capitalize first char" do
      command2module("say").should eq("Say")
      command2module(:say).should eq(:Say)
    end

    it "should capitalize support dashes" do
      command2module("say-hello").should eq("SayHello")
      command2module(:"say-hello").should eq(:SayHello)
    end
    
  end # module Quickl
end # module Quickl

Version data entries

5 entries across 5 versions & 1 rubygems

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