Sha256: c057df998d3b5805a44920140378591d7d5a37edf21c81b12c0a056e78f00d59
Contents?: true
Size: 583 Bytes
Versions: 6
Compression:
Stored size: 583 Bytes
Contents
require 'spec_helper' module Alf describe Tools do let(:tools){ Object.new.extend(Tools) } specify "class_name" do tools.class_name(Alf).should == :Alf tools.class_name(Alf::Tools).should == :Tools end specify "ruby_case" do tools.ruby_case(:Alf).should == "alf" tools.ruby_case(:HelloWorld).should == "hello_world" end specify "coalesce" do tools.coalesce(1).should == 1 tools.coalesce(1, 2).should == 1 tools.coalesce(1, nil).should == 1 tools.coalesce(nil, 2).should == 2 end end end
Version data entries
6 entries across 6 versions & 1 rubygems