Sha256: 003fe9390bd98ad99af2aa5b9394bed7e1c875ebe9661c44e2df2ad20e32da9e

Contents?: true

Size: 548 Bytes

Versions: 4

Compression:

Stored size: 548 Bytes

Contents

require 'spec_helper'
module Alf
  describe Support, "rubycase_name" do

    let(:tools){ Object.new.extend(Support) }

    it "should work on a Symbol" do
      tools.rubycase_name(:Alf).should == :alf
    end

    it "should work on a String" do
      tools.rubycase_name("HelloWorld").should == :hello_world
    end

    it "should work on a Class" do
      tools.rubycase_name(String ).should == :string
    end

    it "should work on a Module" do
      tools.rubycase_name(Algebra::NonRelational).should == :non_relational
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-support/test_rubycase_name.rb
alf-core-0.14.0 spec/unit/alf-support/test_rubycase_name.rb
alf-core-0.13.1 spec/unit/alf-support/test_rubycase_name.rb
alf-core-0.13.0 spec/unit/alf-support/test_rubycase_name.rb