merb-core 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +1 -1
- data/README +3 -3
- data/Rakefile +144 -33
- data/bin/merb +0 -0
- data/bin/merb-specs +0 -0
- data/docs/bootloading.dox +1 -0
- data/docs/merb-core-call-stack-diagram.mmap +0 -0
- data/docs/merb-core-call-stack-diagram.pdf +0 -0
- data/docs/merb-core-call-stack-diagram.png +0 -0
- data/lib/merb-core.rb +159 -37
- data/lib/merb-core/autoload.rb +1 -0
- data/lib/merb-core/bootloader.rb +208 -92
- data/lib/merb-core/config.rb +20 -6
- data/lib/merb-core/controller/abstract_controller.rb +113 -61
- data/lib/merb-core/controller/exceptions.rb +28 -13
- data/lib/merb-core/controller/merb_controller.rb +73 -44
- data/lib/merb-core/controller/mime.rb +25 -7
- data/lib/merb-core/controller/mixins/authentication.rb +1 -1
- data/lib/merb-core/controller/mixins/controller.rb +44 -8
- data/lib/merb-core/controller/mixins/render.rb +191 -128
- data/lib/merb-core/controller/mixins/responder.rb +65 -63
- data/lib/merb-core/controller/template.rb +103 -54
- data/lib/merb-core/core_ext.rb +7 -12
- data/lib/merb-core/core_ext/kernel.rb +128 -136
- data/lib/merb-core/dispatch/cookies.rb +26 -4
- data/lib/merb-core/dispatch/default_exception/default_exception.rb +93 -0
- data/lib/merb-core/dispatch/default_exception/views/_css.html.erb +198 -0
- data/lib/merb-core/dispatch/default_exception/views/_javascript.html.erb +73 -0
- data/lib/merb-core/dispatch/default_exception/views/index.html.erb +92 -0
- data/lib/merb-core/dispatch/dispatcher.rb +156 -224
- data/lib/merb-core/dispatch/request.rb +126 -25
- data/lib/merb-core/dispatch/router.rb +61 -6
- data/lib/merb-core/dispatch/router/behavior.rb +122 -41
- data/lib/merb-core/dispatch/router/route.rb +147 -22
- data/lib/merb-core/dispatch/session.rb +52 -2
- data/lib/merb-core/dispatch/session/cookie.rb +4 -2
- data/lib/merb-core/dispatch/session/memcached.rb +38 -27
- data/lib/merb-core/dispatch/session/memory.rb +18 -11
- data/lib/merb-core/dispatch/worker.rb +28 -0
- data/lib/merb-core/gem_ext/erubis.rb +58 -0
- data/lib/merb-core/logger.rb +3 -31
- data/lib/merb-core/plugins.rb +25 -3
- data/lib/merb-core/rack.rb +18 -12
- data/lib/merb-core/rack/adapter.rb +10 -8
- data/lib/merb-core/rack/adapter/ebb.rb +2 -2
- data/lib/merb-core/rack/adapter/irb.rb +31 -21
- data/lib/merb-core/rack/adapter/swiftiplied_mongrel.rb +26 -0
- data/lib/merb-core/rack/adapter/thin.rb +19 -9
- data/lib/merb-core/rack/adapter/thin_turbo.rb +24 -0
- data/lib/merb-core/rack/application.rb +9 -84
- data/lib/merb-core/rack/middleware.rb +26 -0
- data/lib/merb-core/rack/middleware/path_prefix.rb +31 -0
- data/lib/merb-core/rack/middleware/profiler.rb +19 -0
- data/lib/merb-core/rack/middleware/static.rb +45 -0
- data/lib/merb-core/server.rb +27 -9
- data/lib/merb-core/tasks/audit.rake +68 -0
- data/lib/merb-core/tasks/merb.rb +1 -0
- data/lib/merb-core/tasks/merb_rake_helper.rb +12 -0
- data/lib/merb-core/tasks/stats.rake +71 -0
- data/lib/merb-core/test.rb +2 -1
- data/lib/merb-core/test/helpers/multipart_request_helper.rb +3 -3
- data/lib/merb-core/test/helpers/request_helper.rb +66 -24
- data/lib/merb-core/test/matchers/controller_matchers.rb +36 -4
- data/lib/merb-core/test/matchers/route_matchers.rb +12 -3
- data/lib/merb-core/test/matchers/view_matchers.rb +3 -3
- data/lib/merb-core/test/run_specs.rb +1 -0
- data/lib/merb-core/test/tasks/spectasks.rb +13 -5
- data/lib/merb-core/test/test_ext/string.rb +14 -0
- data/lib/merb-core/vendor/facets/dictionary.rb +3 -3
- data/lib/merb-core/vendor/facets/inflect.rb +82 -37
- data/lib/merb-core/version.rb +2 -2
- data/spec/private/config/config_spec.rb +39 -4
- data/spec/private/core_ext/kernel_spec.rb +3 -14
- data/spec/private/dispatch/bootloader_spec.rb +1 -1
- data/spec/private/dispatch/cookies_spec.rb +181 -69
- data/spec/private/dispatch/fixture/app/controllers/exceptions.rb +0 -2
- data/spec/private/dispatch/fixture/app/controllers/foo.rb +0 -2
- data/spec/private/dispatch/fixture/config/rack.rb +10 -0
- data/spec/private/dispatch/fixture/log/merb_test.log +7054 -1802
- data/spec/private/dispatch/route_params_spec.rb +2 -3
- data/spec/private/dispatch/session_mixin_spec.rb +47 -0
- data/spec/private/plugins/plugin_spec.rb +73 -59
- data/spec/private/router/behavior_spec.rb +60 -0
- data/spec/private/router/fixture/log/merb_test.log +1693 -0
- data/spec/private/router/route_spec.rb +414 -0
- data/spec/private/router/router_spec.rb +175 -0
- data/spec/private/vendor/facets/plural_spec.rb +564 -0
- data/spec/private/vendor/facets/singular_spec.rb +489 -0
- data/spec/public/abstract_controller/controllers/cousins.rb +41 -0
- data/spec/public/abstract_controller/controllers/helpers.rb +12 -2
- data/spec/public/abstract_controller/controllers/partial.rb +17 -2
- data/spec/public/abstract_controller/controllers/render.rb +16 -1
- data/spec/public/abstract_controller/controllers/views/helpers/capture_eq/index.erb +1 -0
- data/spec/public/abstract_controller/controllers/views/helpers/capture_with_args/index.erb +1 -0
- data/spec/public/abstract_controller/controllers/views/merb/test/fixtures/abstract/render_two_throw_contents/index.erb +1 -0
- data/spec/public/abstract_controller/controllers/views/partial/partial_with_collections_and_counter/_collection.erb +1 -0
- data/spec/public/abstract_controller/controllers/views/partial/partial_with_collections_and_counter/index.erb +1 -0
- data/spec/public/abstract_controller/controllers/views/partial/with_absolute_partial/_partial.erb +1 -0
- data/spec/public/abstract_controller/controllers/views/partial/with_absolute_partial/index.erb +1 -0
- data/spec/public/abstract_controller/filter_spec.rb +20 -1
- data/spec/public/abstract_controller/helper_spec.rb +10 -2
- data/spec/public/abstract_controller/partial_spec.rb +8 -0
- data/spec/public/abstract_controller/render_spec.rb +8 -0
- data/spec/public/abstract_controller/spec_helper.rb +7 -3
- data/spec/public/boot_loader/boot_loader_spec.rb +2 -2
- data/spec/public/controller/base_spec.rb +10 -2
- data/spec/public/controller/config/init.rb +6 -0
- data/spec/public/controller/controllers/authentication.rb +9 -11
- data/spec/public/controller/controllers/base.rb +2 -8
- data/spec/public/controller/controllers/cookies.rb +16 -0
- data/spec/public/controller/controllers/dispatcher.rb +35 -0
- data/spec/public/controller/controllers/display.rb +62 -14
- data/spec/public/controller/controllers/redirect.rb +36 -0
- data/spec/public/controller/controllers/responder.rb +37 -11
- data/spec/public/controller/controllers/views/layout/custom_arg.json.erb +1 -0
- data/spec/public/controller/controllers/views/merb/test/fixtures/controllers/class_and_local_provides/index.html.erb +1 -0
- data/spec/public/controller/controllers/views/merb/test/fixtures/controllers/class_and_local_provides/index.xml.erb +1 -0
- data/spec/public/controller/controllers/views/merb/test/fixtures/controllers/display_with_template/no_layout.html.erb +1 -0
- data/spec/public/controller/cookies_spec.rb +23 -0
- data/spec/public/controller/dispatcher_spec.rb +411 -0
- data/spec/public/controller/display_spec.rb +43 -10
- data/spec/public/controller/redirect_spec.rb +33 -0
- data/spec/public/controller/responder_spec.rb +79 -11
- data/spec/public/controller/spec_helper.rb +3 -1
- data/spec/public/controller/url_spec.rb +10 -0
- data/spec/public/core/merb_core_spec.rb +11 -0
- data/spec/public/core_ext/fixtures/core_ext_dependency.rb +2 -0
- data/spec/public/core_ext/kernel_spec.rb +9 -0
- data/spec/public/core_ext/spec_helper.rb +1 -0
- data/spec/public/directory_structure/directory/log/merb_test.log +3729 -272
- data/spec/public/directory_structure/directory_spec.rb +3 -4
- data/spec/public/logger/logger_spec.rb +4 -4
- data/spec/public/reloading/directory/log/merb_test.log +288066 -15
- data/spec/public/reloading/reload_spec.rb +49 -27
- data/spec/public/request/multipart_spec.rb +26 -0
- data/spec/public/request/request_spec.rb +21 -2
- data/spec/public/router/fixation_spec.rb +27 -0
- data/spec/public/router/fixture/log/merb_test.log +30050 -0
- data/spec/public/router/nested_matches_spec.rb +97 -0
- data/spec/public/router/resource_spec.rb +1 -9
- data/spec/public/router/resources_spec.rb +0 -20
- data/spec/public/router/spec_helper.rb +27 -9
- data/spec/public/router/special_spec.rb +21 -8
- data/spec/public/template/template_spec.rb +17 -5
- data/spec/public/test/controller_matchers_spec.rb +10 -0
- data/spec/public/test/request_helper_spec.rb +29 -0
- data/spec/public/test/route_helper_spec.rb +18 -1
- data/spec/public/test/route_matchers_spec.rb +28 -1
- data/spec/public/test/view_matchers_spec.rb +3 -3
- data/spec/spec_helper.rb +56 -12
- metadata +89 -47
- data/lib/merb-core/core_ext/class.rb +0 -299
- data/lib/merb-core/core_ext/hash.rb +0 -426
- data/lib/merb-core/core_ext/mash.rb +0 -154
- data/lib/merb-core/core_ext/object.rb +0 -147
- data/lib/merb-core/core_ext/object_space.rb +0 -14
- data/lib/merb-core/core_ext/rubygems.rb +0 -28
- data/lib/merb-core/core_ext/set.rb +0 -46
- data/lib/merb-core/core_ext/string.rb +0 -89
- data/lib/merb-core/core_ext/time.rb +0 -13
- data/lib/merb-core/dispatch/exceptions.html.erb +0 -297
- data/spec/private/core_ext/class_spec.rb +0 -22
- data/spec/private/core_ext/hash_spec.rb +0 -522
- data/spec/private/core_ext/object_spec.rb +0 -121
- data/spec/private/core_ext/set_spec.rb +0 -26
- data/spec/private/core_ext/string_spec.rb +0 -167
- data/spec/private/core_ext/time_spec.rb +0 -16
- data/spec/private/dispatch/dispatch_spec.rb +0 -26
- data/spec/private/dispatch/fixture/log/development.log +0 -1
- data/spec/private/dispatch/fixture/log/merb.4000.pid +0 -1
- data/spec/private/dispatch/fixture/log/production.log +0 -1
- data/spec/private/dispatch/fixture/merb.4000.pid +0 -1
- data/spec/private/rack/application_spec.rb +0 -43
- data/spec/public/controller/log/merb.4000.pid +0 -1
- data/spec/public/directory_structure/directory/log/merb.4000.pid +0 -1
- data/spec/public/directory_structure/directory/merb.4000.pid +0 -1
- data/spec/public/reloading/directory/log/merb.4000.pid +0 -1
- data/spec/public/reloading/directory/merb.4000.pid +0 -1
@@ -0,0 +1,489 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../../../spec_helper'
|
2
|
+
|
3
|
+
describe Language::English::Inflect, "#singular" do
|
4
|
+
# ==== exceptional cases
|
5
|
+
|
6
|
+
it "singularizes equipment => equipment" do
|
7
|
+
"equipment".singular.should == "equipment"
|
8
|
+
end
|
9
|
+
|
10
|
+
it "singularizes information => information" do
|
11
|
+
"information".singular.should == "information"
|
12
|
+
end
|
13
|
+
|
14
|
+
it "singularizes money => money" do
|
15
|
+
"money".singular.should == "money"
|
16
|
+
end
|
17
|
+
|
18
|
+
it "singularizes species => species" do
|
19
|
+
"species".singular.should == "species"
|
20
|
+
end
|
21
|
+
|
22
|
+
it "singularizes series => series" do
|
23
|
+
"series".singular.should == "series"
|
24
|
+
end
|
25
|
+
|
26
|
+
it "singularizes fish => fish" do
|
27
|
+
"fish".singular.should == "fish"
|
28
|
+
end
|
29
|
+
|
30
|
+
it "singularizes sheep => sheep" do
|
31
|
+
"sheep".singular.should == "sheep"
|
32
|
+
end
|
33
|
+
|
34
|
+
it "singularizes news => news" do
|
35
|
+
"news".singular.should == "news"
|
36
|
+
end
|
37
|
+
|
38
|
+
it "singularizes rain => rain" do
|
39
|
+
"rain".singular.should == "rain"
|
40
|
+
end
|
41
|
+
|
42
|
+
it "singularizes milk => milk" do
|
43
|
+
"milk".singular.should == "milk"
|
44
|
+
end
|
45
|
+
|
46
|
+
it "singularizes moose => moose" do
|
47
|
+
"moose".singular.should == "moose"
|
48
|
+
end
|
49
|
+
|
50
|
+
it "singularizes hovercraft => hovercraft" do
|
51
|
+
"hovercraft".singular.should == "hovercraft"
|
52
|
+
end
|
53
|
+
|
54
|
+
it "singularizes cactus => cacti" do
|
55
|
+
"cacti".singular.should == "cactus"
|
56
|
+
end
|
57
|
+
|
58
|
+
it "singularizes thesauri => thesaurus" do
|
59
|
+
"thesauri".singular.should == "thesaurus"
|
60
|
+
end
|
61
|
+
|
62
|
+
it "singularizes matrices => matrix" do
|
63
|
+
"matrices".singular.should == "matrix"
|
64
|
+
end
|
65
|
+
|
66
|
+
it "singularizes Swiss => Swiss" do
|
67
|
+
"Swiss".singular.should == "Swiss"
|
68
|
+
end
|
69
|
+
|
70
|
+
it "singularizes lives => life" do
|
71
|
+
"lives".singular.should == "life"
|
72
|
+
end
|
73
|
+
|
74
|
+
it "singularizes wives => wife" do
|
75
|
+
"wives".singular.should == "wife"
|
76
|
+
end
|
77
|
+
|
78
|
+
it "singularizes geese => goose" do
|
79
|
+
"geese".singular.should == "goose"
|
80
|
+
end
|
81
|
+
|
82
|
+
it "singularizes criteria => criterion" do
|
83
|
+
"criteria".singular.should == "criterion"
|
84
|
+
end
|
85
|
+
|
86
|
+
it "singularizes aliases => alias" do
|
87
|
+
"aliases".singular.should == "alias"
|
88
|
+
end
|
89
|
+
|
90
|
+
it "singularizes statuses => status" do
|
91
|
+
"statuses".singular.should == "status"
|
92
|
+
end
|
93
|
+
|
94
|
+
it "singularizes axes => axis" do
|
95
|
+
"axes".singular.should == "axis"
|
96
|
+
end
|
97
|
+
|
98
|
+
it "singularizes crises => crisis" do
|
99
|
+
"crises".singular.should == "crisis"
|
100
|
+
end
|
101
|
+
|
102
|
+
it "singularizes testes => testis" do
|
103
|
+
"testes".singular.should == "testis"
|
104
|
+
end
|
105
|
+
|
106
|
+
it "singularizes children => child" do
|
107
|
+
"children".singular.should == "child"
|
108
|
+
end
|
109
|
+
|
110
|
+
it "singularizes people => person" do
|
111
|
+
"people".singular.should == "person"
|
112
|
+
end
|
113
|
+
|
114
|
+
it "singularizes potatoes => potato" do
|
115
|
+
"potatoes".singular.should == "potato"
|
116
|
+
end
|
117
|
+
|
118
|
+
it "singularizes tomatoes => tomato" do
|
119
|
+
"tomatoes".singular.should == "tomato"
|
120
|
+
end
|
121
|
+
|
122
|
+
it "singularizes buffaloes => buffalo" do
|
123
|
+
"buffaloes".singular.should == "buffalo"
|
124
|
+
end
|
125
|
+
|
126
|
+
it "singularizes torpedoes => torpedo" do
|
127
|
+
"torpedoes".singular.should == "torpedo"
|
128
|
+
end
|
129
|
+
|
130
|
+
it "singularizes quizzes => quiz" do
|
131
|
+
"quizzes".singular.should == "quiz"
|
132
|
+
end
|
133
|
+
|
134
|
+
# used to be a bug exposed by this specs suite,
|
135
|
+
# this MUST pass or we've got regression
|
136
|
+
it "singularizes vertices => vertex" do
|
137
|
+
"vertices".singular.should == "vertex"
|
138
|
+
end
|
139
|
+
|
140
|
+
it "singularizes indices => index" do
|
141
|
+
"indices".singular.should == "index"
|
142
|
+
end
|
143
|
+
|
144
|
+
it "singularizes oxen => ox" do
|
145
|
+
"oxen".singular.should == "ox"
|
146
|
+
end
|
147
|
+
|
148
|
+
it "singularizes mice => mouse" do
|
149
|
+
"mice".singular.should == "mouse"
|
150
|
+
end
|
151
|
+
|
152
|
+
it "singularizes lice => louse" do
|
153
|
+
"lice".singular.should == "louse"
|
154
|
+
end
|
155
|
+
|
156
|
+
it "singularizes theses => thesis" do
|
157
|
+
"theses".singular.should == "thesis"
|
158
|
+
end
|
159
|
+
|
160
|
+
it "singularizes thieves => thief" do
|
161
|
+
"thieves".singular.should == "thief"
|
162
|
+
end
|
163
|
+
|
164
|
+
it "singularizes analyses => analysis" do
|
165
|
+
"analyses".singular.should == "analysis"
|
166
|
+
end
|
167
|
+
|
168
|
+
it "singularizes octopi => octopus" do
|
169
|
+
"octopi".singular.should == "octopus"
|
170
|
+
end
|
171
|
+
|
172
|
+
it "singularizes grass => grass" do
|
173
|
+
"grass".singular.should == "grass"
|
174
|
+
end
|
175
|
+
|
176
|
+
it "singularizes phenomena => phenomenon" do
|
177
|
+
"phenomena".singular.should == "phenomenon"
|
178
|
+
end
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
# ==== bugs, typos and reported issues
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
# ==== rules
|
191
|
+
|
192
|
+
it "singularizes forums => forum" do
|
193
|
+
"forums".singular.should == "forum"
|
194
|
+
end
|
195
|
+
|
196
|
+
it "singularizes hives => hive" do
|
197
|
+
"hives".singular.should == "hive"
|
198
|
+
end
|
199
|
+
|
200
|
+
it "singularizes athletes => athlete" do
|
201
|
+
"athletes".singular.should == "athlete"
|
202
|
+
end
|
203
|
+
|
204
|
+
it "singularizes dwarves => dwarf" do
|
205
|
+
"dwarves".singular.should == "dwarf"
|
206
|
+
end
|
207
|
+
|
208
|
+
it "singularizes heroes => hero" do
|
209
|
+
"heroes".singular.should == "hero"
|
210
|
+
end
|
211
|
+
|
212
|
+
it "singularizes zeroes => zero" do
|
213
|
+
"zeroes".singular.should == "zero"
|
214
|
+
end
|
215
|
+
|
216
|
+
it "singularizes men => man" do
|
217
|
+
"men".singular.should == "man"
|
218
|
+
end
|
219
|
+
|
220
|
+
it "singularizes women => woman" do
|
221
|
+
"women".singular.should == "woman"
|
222
|
+
end
|
223
|
+
|
224
|
+
it "singularizes sportsmen => sportsman" do
|
225
|
+
"sportsmen".singular.should == "sportsman"
|
226
|
+
end
|
227
|
+
|
228
|
+
it "singularizes branches => branch" do
|
229
|
+
"branches".singular.should == "branch"
|
230
|
+
end
|
231
|
+
|
232
|
+
it "singularizes crunches => crunch" do
|
233
|
+
"crunches".singular.should == "crunch"
|
234
|
+
end
|
235
|
+
|
236
|
+
it "singularizes trashes => trash" do
|
237
|
+
"trashes".singular.should == "trash"
|
238
|
+
end
|
239
|
+
|
240
|
+
it "singularizes mashes => mash" do
|
241
|
+
"mashes".singular.should == "mash"
|
242
|
+
end
|
243
|
+
|
244
|
+
it "singularizes crosses => cross" do
|
245
|
+
"crosses".singular.should == "cross"
|
246
|
+
end
|
247
|
+
|
248
|
+
it "singularizes errata => erratum" do
|
249
|
+
"errata".singular.should == "erratum"
|
250
|
+
end
|
251
|
+
|
252
|
+
# FIXME: add -ia => -ium cases
|
253
|
+
|
254
|
+
# FIXME: add -ra => -rum cases
|
255
|
+
|
256
|
+
it "singularizes rays => ray" do
|
257
|
+
"rays".singular.should == "ray"
|
258
|
+
end
|
259
|
+
|
260
|
+
it "singularizes sprays => spray" do
|
261
|
+
"sprays".singular.should == "spray"
|
262
|
+
end
|
263
|
+
|
264
|
+
# Merriam-Webster dictionary says
|
265
|
+
# preys is correct, too.
|
266
|
+
it "singularizes preys => prey" do
|
267
|
+
"preys".singular.should == "prey"
|
268
|
+
end
|
269
|
+
|
270
|
+
it "singularizes toys => toy" do
|
271
|
+
"toys".singular.should == "toy"
|
272
|
+
end
|
273
|
+
|
274
|
+
it "singularizes joys => joy" do
|
275
|
+
"joys".singular.should == "joy"
|
276
|
+
end
|
277
|
+
|
278
|
+
it "singularizes buys => buy" do
|
279
|
+
"buys".singular.should == "buy"
|
280
|
+
end
|
281
|
+
|
282
|
+
it "singularizes guys => guy" do
|
283
|
+
"guys".singular.should == "guy"
|
284
|
+
end
|
285
|
+
|
286
|
+
it "singularizes cries => cry" do
|
287
|
+
"cries".singular.should == "cry"
|
288
|
+
end
|
289
|
+
|
290
|
+
it "singularizes flies => fly" do
|
291
|
+
"flies".singular.should == "fly"
|
292
|
+
end
|
293
|
+
|
294
|
+
it "singularizes foxes => fox" do
|
295
|
+
"foxes".singular.should == "fox"
|
296
|
+
end
|
297
|
+
|
298
|
+
it "singularizes elves => elf" do
|
299
|
+
"elves".singular.should == "elf"
|
300
|
+
end
|
301
|
+
|
302
|
+
it "singularizes shelves => shelf" do
|
303
|
+
"shelves".singular.should == "shelf"
|
304
|
+
end
|
305
|
+
|
306
|
+
it "singularizes pluses => plus" do
|
307
|
+
"pluses".singular.should == "plus"
|
308
|
+
end
|
309
|
+
|
310
|
+
it "singularizes cats => cat" do
|
311
|
+
"cats".singular.should == "cat"
|
312
|
+
end
|
313
|
+
|
314
|
+
it "singularizes rats => rat" do
|
315
|
+
"rats".singular.should == "rat"
|
316
|
+
end
|
317
|
+
|
318
|
+
it "singularizes roses => rose" do
|
319
|
+
"roses".singular.should == "rose"
|
320
|
+
end
|
321
|
+
|
322
|
+
it "singularizes projects => project" do
|
323
|
+
"projects".singular.should == "project"
|
324
|
+
end
|
325
|
+
|
326
|
+
it "singularizes posts => post" do
|
327
|
+
"posts".singular.should == "post"
|
328
|
+
end
|
329
|
+
|
330
|
+
it "singularizes articles => article" do
|
331
|
+
"articles".singular.should == "article"
|
332
|
+
end
|
333
|
+
|
334
|
+
it "singularizes locations => location" do
|
335
|
+
"locations".singular.should == "location"
|
336
|
+
end
|
337
|
+
|
338
|
+
it "singularizes friends => friend" do
|
339
|
+
"friends".singular.should == "friend"
|
340
|
+
end
|
341
|
+
|
342
|
+
it "singularizes links => link" do
|
343
|
+
"links".singular.should == "link"
|
344
|
+
end
|
345
|
+
|
346
|
+
it "singularizes urls => url" do
|
347
|
+
"urls".singular.should == "url"
|
348
|
+
end
|
349
|
+
|
350
|
+
it "singularizes accounts => account" do
|
351
|
+
"accounts".singular.should == "account"
|
352
|
+
end
|
353
|
+
|
354
|
+
it "singularizes servers => server" do
|
355
|
+
"servers".singular.should == "server"
|
356
|
+
end
|
357
|
+
|
358
|
+
it "singularizes fruits => fruit" do
|
359
|
+
"fruits".singular.should == "fruit"
|
360
|
+
end
|
361
|
+
|
362
|
+
it "singularizes maps => map" do
|
363
|
+
"maps".singular.should == "map"
|
364
|
+
end
|
365
|
+
|
366
|
+
it "singularizes incomes => income" do
|
367
|
+
"incomes".singular.should == "income"
|
368
|
+
end
|
369
|
+
|
370
|
+
it "singularizes pings => ping" do
|
371
|
+
"pings".singular.should == "ping"
|
372
|
+
end
|
373
|
+
|
374
|
+
it "singularizes events => event" do
|
375
|
+
"events".singular.should == "event"
|
376
|
+
end
|
377
|
+
|
378
|
+
it "singularizes proofs => proof" do
|
379
|
+
"proofs".singular.should == "proof"
|
380
|
+
end
|
381
|
+
|
382
|
+
it "singularizes typos => typo" do
|
383
|
+
"typos".singular.should == "typo"
|
384
|
+
end
|
385
|
+
|
386
|
+
it "singularizes attachments => attachment" do
|
387
|
+
"attachments".singular.should == "attachment"
|
388
|
+
end
|
389
|
+
|
390
|
+
it "singularizes downloads => download" do
|
391
|
+
"downloads".singular.should == "download"
|
392
|
+
end
|
393
|
+
|
394
|
+
it "singularizes assets => asset" do
|
395
|
+
"assets".singular.should == "asset"
|
396
|
+
end
|
397
|
+
|
398
|
+
it "singularizes jobs => job" do
|
399
|
+
"jobs".singular.should == "job"
|
400
|
+
end
|
401
|
+
|
402
|
+
it "singularizes cities => city" do
|
403
|
+
"cities".singular.should == "city"
|
404
|
+
end
|
405
|
+
|
406
|
+
it "singularizes packages => package" do
|
407
|
+
"packages".singular.should == "package"
|
408
|
+
end
|
409
|
+
|
410
|
+
it "singularizes commits => commit" do
|
411
|
+
"commits".singular.should == "commit"
|
412
|
+
end
|
413
|
+
|
414
|
+
it "singularizes versions => version" do
|
415
|
+
"versions".singular.should == "version"
|
416
|
+
end
|
417
|
+
|
418
|
+
it "singularizes documents => document" do
|
419
|
+
"documents".singular.should == "document"
|
420
|
+
end
|
421
|
+
|
422
|
+
it "singularizes editions => edition" do
|
423
|
+
"editions".singular.should == "edition"
|
424
|
+
end
|
425
|
+
|
426
|
+
it "singularizes movies => movie" do
|
427
|
+
"movies".singular.should == "movie"
|
428
|
+
end
|
429
|
+
|
430
|
+
it "singularizes songs => song" do
|
431
|
+
"songs".singular.should == "song"
|
432
|
+
end
|
433
|
+
|
434
|
+
it "singularizes invoices => invoice" do
|
435
|
+
"invoices".singular.should == "invoice"
|
436
|
+
end
|
437
|
+
|
438
|
+
it "singularizes products => product" do
|
439
|
+
"products".singular.should == "product"
|
440
|
+
end
|
441
|
+
|
442
|
+
it "singularizes books => book" do
|
443
|
+
"books".singular.should == "book"
|
444
|
+
end
|
445
|
+
|
446
|
+
it "singularizes tickets => ticket" do
|
447
|
+
"tickets".singular.should == "ticket"
|
448
|
+
end
|
449
|
+
|
450
|
+
it "singularizes games => game" do
|
451
|
+
"games".singular.should == "game"
|
452
|
+
end
|
453
|
+
|
454
|
+
it "singularizes tournaments => tournament" do
|
455
|
+
"tournaments".singular.should == "tournament"
|
456
|
+
end
|
457
|
+
|
458
|
+
it "singularizes prizes => prize" do
|
459
|
+
"prizes".singular.should == "prize"
|
460
|
+
end
|
461
|
+
|
462
|
+
it "singularizes prices => price" do
|
463
|
+
"prices".singular.should == "price"
|
464
|
+
end
|
465
|
+
|
466
|
+
it "singularizes installations => installation" do
|
467
|
+
"installations".singular.should == "installation"
|
468
|
+
end
|
469
|
+
|
470
|
+
it "singularizes dates => date" do
|
471
|
+
"dates".singular.should == "date"
|
472
|
+
end
|
473
|
+
|
474
|
+
it "singularizes schedules => schedule" do
|
475
|
+
"schedules".singular.should == "schedule"
|
476
|
+
end
|
477
|
+
|
478
|
+
it "singularizes arenas => arena" do
|
479
|
+
"arenas".singular.should == "arena"
|
480
|
+
end
|
481
|
+
|
482
|
+
it "singularizes spams => spam" do
|
483
|
+
"spams".singular.should == "spam"
|
484
|
+
end
|
485
|
+
|
486
|
+
it "singularizes rice => rice" do
|
487
|
+
"rice".singular.should == "rice"
|
488
|
+
end
|
489
|
+
end
|