Sha256: 0294c86138843ea70b7670d6bfb23501922bf86f7928ba6f3a7aa2d365596357
Contents?: true
Size: 617 Bytes
Versions: 3
Compression:
Stored size: 617 Bytes
Contents
require File.expand_path('../../spec_helper', __FILE__) module Quickl describe "Naming::module2command /" do include Naming it "should uncapitalize first char" do module2command("Say").should == "say" module2command(:Say).should == :say end it "should uncapitalize and introduce dashes" do module2command("SayHello").should == "say-hello" module2command(:"SayHello").should == :"say-hello" end it "should support taking modules as argument" do module2command(Quickl::Command).should == "command" end end # module Quickl end # module Quickl
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
quickl-0.2.2 | spec/naming/module2command_spec.rb |
quickl-0.2.1 | spec/naming/module2command_spec.rb |
quickl-0.1.1 | test/naming/module2command.spec |