Sha256: 6b5e10415e62d7f313c528a0ebb2cdd73d16834ad87622c20836983dfbf2bbc2
Contents?: true
Size: 418 Bytes
Versions: 1
Compression:
Stored size: 418 Bytes
Contents
# encoding: UTF-8 # frozen_string_literal: true require 'bundler' Bundler.require :default, :development, :test class HashTweaksTest < Test::Unit::TestCase def test_camelize assert_equal({fooBarBaz: 'qux'}, {foo_bar_baz: 'qux'}.camelize(:lower)) assert_equal({FooBarBaz: 'qux'}, {foo_bar_baz: 'qux'}.camelize(:upper)) assert_equal({FOO_BAZ_BAZ: 'qux'}, {FOO_BAZ_BAZ: 'qux'}.camelize(:upper)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hash-tweaks-1.0.0 | test/test-hash-tweaks.rb |