Sha256: 75abee972c74a710f5a322937bf7d619028e39f05be1a10fc12275d8c13d4345

Contents?: true

Size: 485 Bytes

Versions: 3

Compression:

Stored size: 485 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper.rb'

class TestCoreExt < Test::Unit::TestCase
  context "A string" do
    it "should be converted to method name" do
      assert :this_is_fun, "this is fun".to_method_name
    end
    
    it "should be downcased when converted" do
      assert :this_is_a_blast, "THIS is A BlASt".to_method_name
    end
    
    it "should change spaces to _" do
      assert :this_has_been_great, "This has been great".to_method_name
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jeremymcanally-context-0.0.3 test/test_core_ext.rb
jeremymcanally-context-0.0.5 test/test_core_ext.rb
jeremymcanally-context-0.0.6 test/test_core_ext.rb