reality-naming 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reality/naming.rb +1 -0
- data/reality-naming.gemspec +1 -1
- data/test/test_naming.rb +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28b37072c218f88d81b3cced702bc125a0ef19d4
|
4
|
+
data.tar.gz: 573c6d79ddcb999f0e6e2fff96926976ab39c808
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11451662ac4eca11860bb52eafc06eeb2d0f08b4aa686caf94bae28a66ac1a3be572ae5847559f1a5fed725f465bed6a47c0c21f48a004250cbdbee4f63820f9
|
7
|
+
data.tar.gz: 265a5e20e0f367496793df834ff31a8fe9134f29568dccd3a082d60d790891e2516a1ec5421a2b9117e58b99a7ac5ee498ac86f71e5e19bbe362640cc8add8ee
|
data/lib/reality/naming.rb
CHANGED
data/reality-naming.gemspec
CHANGED
data/test/test_naming.rb
CHANGED
@@ -29,10 +29,13 @@ class TestNaming < Reality::Naming::TestCase
|
|
29
29
|
|
30
30
|
def test_default_pluralization_rules
|
31
31
|
assert_equal 'children', Reality::Naming.pluralize('child')
|
32
|
+
assert_equal 'Children', Reality::Naming.pluralize('Child')
|
32
33
|
Reality::Naming.clear_pluralization_rules
|
33
34
|
assert_equal 'childs', Reality::Naming.pluralize('child')
|
35
|
+
assert_equal 'Childs', Reality::Naming.pluralize('Child')
|
34
36
|
Reality::Naming.reset
|
35
37
|
assert_equal 'children', Reality::Naming.pluralize('child')
|
38
|
+
assert_equal 'Children', Reality::Naming.pluralize('Child')
|
36
39
|
end
|
37
40
|
|
38
41
|
def test_basics
|