rogdl 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/string.rb +1 -1
- data/test/test_string.rb +9 -0
- metadata +1 -1
data/lib/string.rb
CHANGED
data/test/test_string.rb
CHANGED
@@ -19,6 +19,10 @@ class TestString < Test::Unit::TestCase
|
|
19
19
|
|
20
20
|
assert_equal 'ldap', 'LDAP'.camel_case
|
21
21
|
assert_equal 'ldapName', 'LDAP Name'.camel_case
|
22
|
+
|
23
|
+
s = 'some text'
|
24
|
+
s.camel_case
|
25
|
+
assert_equal 'some text', s
|
22
26
|
end
|
23
27
|
|
24
28
|
def test_alias
|
@@ -38,6 +42,11 @@ class TestString < Test::Unit::TestCase
|
|
38
42
|
|
39
43
|
assert_equal 'Ldap', 'LDAP'.upper_camel_case
|
40
44
|
assert_equal 'LdapName', 'LDAP Name'.upper_camel_case
|
45
|
+
|
46
|
+
s = 'some text'
|
47
|
+
s.upper_camel_case
|
48
|
+
assert_equal 'some text', s
|
49
|
+
|
41
50
|
end
|
42
51
|
|
43
52
|
|