-
Notifications
You must be signed in to change notification settings - Fork 1
/
en.yml
647 lines (597 loc) · 29.1 KB
/
en.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
en:
remarkable:
core:
not: "not"
should: "should"
should_not: "should not"
example_disabled: "Example disabled"
failure_message_for_should: "Expected %{expectation}"
failure_message_for_should_not: "Did not expect %{expectation}"
helpers:
words_connector: ", "
two_words_connector: " and "
last_word_connector: ", and "
action_controller:
responding: "responding to #%{verb} %{action}"
mime_type: "with %{format}"
assign_to:
description: "assign %{names}"
expectations:
assigned_value: "action to assign %{name}, got no assignment"
is_kind_of: "assign %{name} to be kind of %{with_kind_of}, got a %{assign_class}"
is_equal_value: "assign %{name} to be equal to %{with}, got %{assign_inspect}"
optionals:
with_kind_of:
positive: "with kind of %{value}"
filter_params:
description: "filter %{params} parameters from log"
expectations:
respond_to_filter_params: "controller to respond to filter_parameters (controller is not filtering any parameter)"
is_filtered: "%{param} to be filtered, got no filtering"
redirect_to:
description: "redirect to %{expected}"
expectations:
redirected: "redirect to %{expected}, got no redirect"
status_matches: "redirect to %{expected} with status %{with}, got status %{status}"
url_matches: "redirect to %{expected}, got redirect to %{actual}"
optionals:
with:
positive: "with status %{inspect}"
render_template:
description: "render"
expectations:
rendered: "template %{template} to be rendered, got no render"
template_matches: "template %{template} to be rendered, got %{actual_template}"
layout_matches: "to render with layout %{layout}, got %{actual_layout}"
status_matches: "to render with status %{with}, got %{actual_status}"
body_matches: "to render with body %{body}, got %{actual_body}"
content_type_matches: "to render with content type %{content_type}, got %{actual_content_type}"
optionals:
template:
positive: "template %{inspect}"
layout:
positive: "with layout %{inspect}"
negative: "with no layout"
with:
positive: "with %{value}"
body:
positive: "with body %{inspect}"
content_type:
positive: "with content type %{inspect}"
respond_with:
description: "respond"
expectations:
status_matches: "to respond with status %{with}, got %{actual_status}"
body_matches: "to respond with body %{body}, got %{actual_body}"
content_type_matches: "to respond with content type %{content_type}, got %{actual_content_type}"
optionals:
with:
positive: "with %{value}"
body:
positive: "with body %{inspect}"
content_type:
positive: "with content type %{inspect}"
route:
description: "route %{method} %{path} to/from %{options}"
expectations:
map_to_path: "to map %{options} to %{method} %{path}, got %{actual}"
generate_params: "to generate params %{options} from %{method} %{path}, got %{actual}"
set_cookies:
description: "set cookies %{keys}"
expectations:
is_not_empty: "any cookie to be set, got %{cookies_inspect}"
contains_value: "any cookie to be set to %{to}, got %{cookies_inspect}"
assigned_value: "cookie %{key} to be set, got %{cookies_inspect}"
is_equal_value: "cookie %{key} to be set to %{to}, got %{cookies_inspect}"
optionals:
to:
positive: "to %{inspect}"
negative: "to %{inspect}"
set_session:
description: "set session variable %{keys}"
expectations:
is_not_empty: "any session variable to be set, got %{session_inspect}"
contains_value: "any session variable to be set to %{to}, got %{session_inspect}"
assigned_value: "session variable %{key} to be set, got %{session_inspect}"
is_equal_value: "session variable %{key} to be set to %{to}, got %{session_inspect}"
optionals:
to:
positive: "to %{inspect}"
negative: "to %{inspect}"
set_the_flash:
description: "set the flash message %{keys}"
expectations:
is_not_empty: "any flash message to be set, got %{flash_inspect}"
contains_value: "any flash message to be set to %{to}, got %{flash_inspect}"
assigned_value: "flash message %{key} to be set, got %{flash_inspect}"
is_equal_value: "flash message %{key} to be set to %{to}, got %{flash_inspect}"
optionals:
to:
positive: "to %{inspect}"
negative: "to %{inspect}"
active_record:
describe:
each: "%{key} is %{value}"
prepend: "when "
connector: " and "
expectations:
allow_nil: "%{subject_name} to %{not}allow nil values for %{attribute}"
allow_blank: "%{subject_name} to %{not}allow blank values for %{attribute}"
optionals:
allow_nil:
positive: "allowing nil values"
negative: "not allowing nil values"
allow_blank:
positive: "allowing blank values"
negative: "not allowing blank values"
accept_nested_attributes_for:
description: "accept nested attributes for %{associations}"
expectations:
association_exists: "%{subject_name} to have association %{association}, but does not"
is_autosave: "%{subject_name} to have association %{association} with autosave true, got false"
responds_to_attributes: "%{subject_name} to respond to :%{association}_attributes=, but does not"
allows_destroy: "%{subject_name} with allow destroy equals to %{allow_destroy}, got %{actual}"
accepts: "%{subject_name} to accept attributes %{attributes} for %{association}, but does not"
rejects: "%{subject_name} to reject attributes %{attributes} for %{association}, but does not"
optionals:
allow_destroy:
positive: "allowing destroy"
negative: "not allowing destroy"
accept:
positive: "accepting %{sentence}"
reject:
positive: "rejecting %{sentence}"
allow_values_for:
description: "allow %{in} as values for %{attributes}"
expectations:
is_valid: "%{subject_name} to be valid when %{attribute} is set to %{value}"
allow_mass_assignment_of:
description: "allow mass assignment of %{attributes}"
expectations:
allows: "%{subject_name} to allow mass assignment (%{subject_name} is protecting %{protected_attributes})"
is_protected: "%{subject_name} to allow mass assignment of %{attribute} (%{subject_name} is protecting %{attribute})"
is_accessible: "%{subject_name} to allow mass assignment of %{attribute} (%{subject_name} has not made %{attribute} accessible)"
negative_expectations:
allows: "%{subject_name} to allow mass assignment (%{subject_name} made %{accessible_attributes} accessible)"
is_protected: "%{subject_name} to allow mass assignment of %{attribute} (%{subject_name} is not protecting %{attribute})"
is_accessible: "%{subject_name} to allow mass assignment of %{attribute} (%{subject_name} has made %{attribute} accessible)"
association:
belongs_to: belong to
has_many: have many
has_and_belongs_to_many: have and belong to many
has_one: have one
description: "%{macro} %{associations}"
expectations:
association_exists: "%{subject_name} records %{macro} %{association}, but the association does not exist"
macro_matches: "%{subject_name} records %{macro} %{association}, got %{subject_name} records %{actual_macro} %{association}"
through_exists: "%{subject_name} records %{macro} %{association} through %{through}, through association does not exist"
source_exists: "%{subject_name} records %{macro} %{association} through %{through}, source association does not exist"
klass_exists: "%{subject_name} records %{macro} %{association}, but the association class does not exist"
join_table_exists: "join table %{join_table} to exist, but does not"
foreign_key_exists: "foreign key %{foreign_key} to exist on %{foreign_key_table}, but does not"
polymorphic_exists: "%{subject_table} to have %{polymorphic_column} as column, but does not"
counter_cache_exists: "%{reflection_table} to have %{counter_cache_column} as column, but does not"
options_match: "%{subject_name} records %{macro} %{association} with options %{options}, got %{actual}"
optionals:
through:
positive: "through %{value}"
source:
positive: "with source %{inspect}"
source_type:
positive: "with source type %{inspect}"
class_name:
positive: "with class name %{inspect}"
foreign_key:
positive: "with foreign key %{inspect}"
dependent:
positive: "with dependent %{inspect}"
join_table:
positive: "with join table %{inspect}"
uniq:
positive: "with unique records"
negative: "without unique records"
readonly:
positive: "with readonly records"
negative: "without readonly records"
validate:
positive: "validating associated records"
negative: "not validating associated records"
autosave:
positive: "autosaving associated records"
negative: "not autosaving associated records"
as:
positive: "through the polymorphic interface %{inspect}"
counter_cache:
positive: "with counter cache %{inspect}"
negative: "without counter cache"
select:
positive: "selecting %{inspect}"
conditions:
positive: "with conditions %{inspect}"
include:
positive: "including %{inspect}"
group:
positive: "grouping by %{inspect}"
having:
positive: "having %{inspect}"
order:
positive: "with order %{inspect}"
limit:
positive: "with limit %{inspect}"
offset:
positive: "with offset %{inspect}"
have_column:
description: "have column(s) named %{columns}"
expectations:
column_exists: "%{subject_name} to have column named %{column}"
options_match: "%{subject_name} to have column %{column} with options %{options}, got %{actual}"
optionals:
type:
positive: "with type %{inspect}"
null:
positive: "allowing null values"
negative: "not allowing null values"
default:
positive: "with default value %{inspect}"
negative: "with default value %{inspect}"
limit:
positive: "with limit %{inspect}"
have_default_scope:
description: "have a default scope with %{options}"
expectations:
options_match: "default scope with %{options}, got %{actual}"
have_index:
description: "have index for column(s) %{columns}"
expectations:
index_exists: "index %{column} to exist on table %{table_name}"
is_unique: "index on %{column} with unique equals to %{unique}, got %{actual}"
optionals:
unique:
positive: "with unique values"
negative: "with non unique values"
table_name:
positive: "on table %{value}"
have_readonly_attributes:
description: "make %{attributes} read-only"
expectations:
is_readonly: "%{subject_name} to make %{attribute} read-only, got %{actual}"
have_scope:
description: "have to scope itself to %{options} when %{scope_name} is called"
expectations:
is_scope: "%{scope_name} when called on %{subject_name} return an instance of ActiveRecord::NamedScope::Scope"
options_match: "%{scope_name} when called on %{subject_name} scope to %{options}, got %{actual}"
optionals:
with:
positive: "with %{inspect} as argument"
validate_acceptance_of:
description: "require %{attributes} to be accepted"
expectations:
requires_acceptance: "%{subject_name} to be invalid if %{attribute} is not accepted"
accept_is_valid: "%{subject_name} to be valid when %{attribute} is accepted with value %{accept}"
optionals:
accept:
positive: "with value %{inspect}"
validate_associated:
description: "require associated %{associations} to be valid"
expectations:
is_valid: "%{subject_name} to be invalid when %{association} is invalid"
validate_confirmation_of:
description: "require %{attributes} to be confirmed"
expectations:
responds_to_confirmation: "%{subject_name} instance responds to %{attribute}_confirmation"
confirms: "%{subject_name} to be valid only when %{attribute} is confirmed"
validate_exclusion_of:
description: "ensure exclusion of %{attributes} in %{in}"
expectations:
is_valid: "%{subject_name} to be valid when %{attribute} is set to %{value}"
is_invalid: "%{subject_name} to be invalid when %{attribute} is set to %{value}"
validate_inclusion_of:
description: "ensure inclusion of %{attributes} in %{in}"
expectations:
is_valid: "%{subject_name} to be valid when %{attribute} is set to %{value}"
is_invalid: "%{subject_name} to be invalid when %{attribute} is set to %{value}"
validate_length_of:
description: "ensure length of %{attributes}"
expectations:
less_than_min_length: "%{subject_name} to be invalid when %{attribute} length is less than %{minimum} characters"
exactly_min_length: "%{subject_name} to be valid when %{attribute} length is %{minimum} characters"
more_than_max_length: "%{subject_name} to be invalid when %{attribute} length is more than %{maximum} characters"
exactly_max_length: "%{subject_name} to be valid when %{attribute} length is %{maximum} characters"
optionals:
within:
positive: "is within %{inspect} characters"
maximum:
positive: "is maximum %{inspect} characters"
minimum:
positive: "is minimum %{inspect} characters"
is:
positive: "is equal to %{inspect} characters"
with_kind_of:
positive: "with kind of %{value}"
validate_numericality_of:
description: "ensure numericality of %{attributes}"
expectations:
only_numeric_values: "%{subject_name} to allow only numeric values for %{attribute}"
only_integer: "%{subject_name} to %{not}allow only integer values for %{attribute}"
only_even: "%{subject_name} to allow only even values for %{attribute}"
only_odd: "%{subject_name} to allow only odd values for %{attribute}"
equals_to: "%{subject_name} to be valid only when %{attribute} is equal to %{count}"
more_than_maximum: "%{subject_name} to be invalid when %{attribute} is greater than %{count}"
less_than_minimum: "%{subject_name} to be invalid when %{attribute} is less than %{count}"
optionals:
only_integer:
positive: "allowing only integer values"
odd:
positive: "allowing only odd values"
even:
positive: "allowing only even values"
equal_to:
positive: "is equal to %{inspect}"
less_than:
positive: "is less than %{inspect}"
greater_than:
positive: "is greater than %{inspect}"
less_than_or_equal_to:
positive: "is less than or equal to %{inspect}"
greater_than_or_equal_to:
positive: "is greater than or equal to %{inspect}"
validate_presence_of:
description: "require %{attributes} to be set"
expectations:
allow_nil: "%{subject_name} to require %{attribute} to be set"
validate_uniqueness_of:
description: "require unique values for %{attributes}"
expectations:
responds_to_scope: "%{subject_name} instance responds to %{method}"
is_unique: "%{subject_name} to require unique values for %{attribute}"
case_sensitive: "%{subject_name} to %{not}be case sensitive on %{attribute} validation"
valid_with_new_scope: "%{subject_name} to be valid when %{attribute} scope (%{method}) change"
optionals:
scope:
positive: "scoped to %{sentence}"
case_sensitive:
positive: "case sensitive"
negative: "case insensitive"
data_mapper:
describe:
each: "%{key} is %{value}"
prepend: "when "
connector: " and "
expectations:
allow_nil: "%{subject_name} to %{not}allow nil values for %{attribute}"
allow_blank: "%{subject_name} to %{not}allow blank values for %{attribute}"
optionals:
allow_nil:
positive: "allowing nil values"
negative: "not allowing nil values"
allow_blank:
positive: "allowing blank values"
negative: "not allowing blank values"
accept_nested_attributes_for:
description: "accept nested attributes for %{associations}"
expectations:
association_exists: "%{subject_name} to have association %{association}, but does not"
is_autosave: "%{subject_name} to have association %{association} with autosave true, got false"
responds_to_attributes: "%{subject_name} to respond to :%{association}_attributes=, but does not"
allows_destroy: "%{subject_name} with allow destroy equals to %{allow_destroy}, got %{actual}"
accepts: "%{subject_name} to accept attributes %{attributes} for %{association}, but does not"
rejects: "%{subject_name} to reject attributes %{attributes} for %{association}, but does not"
optionals:
allow_destroy:
positive: "allowing destroy"
negative: "not allowing destroy"
accept:
positive: "accepting %{sentence}"
reject:
positive: "rejecting %{sentence}"
allow_values_for:
description: "allow %{in} as values for %{attributes}"
expectations:
is_valid: "%{subject_name} to be valid when %{attribute} is set to %{value}"
allow_mass_assignment_of:
description: "allow mass assignment of %{attributes}"
expectations:
allows: "%{subject_name} to allow mass assignment (%{subject_name} is protecting %{protected_attributes})"
is_protected: "%{subject_name} to allow mass assignment of %{attribute} (%{subject_name} is protecting %{attribute})"
is_accessible: "%{subject_name} to allow mass assignment of %{attribute} (%{subject_name} has not made %{attribute} accessible)"
negative_expectations:
allows: "%{subject_name} to allow mass assignment (%{subject_name} made %{accessible_attributes} accessible)"
is_protected: "%{subject_name} to allow mass assignment of %{attribute} (%{subject_name} is not protecting %{attribute})"
is_accessible: "%{subject_name} to allow mass assignment of %{attribute} (%{subject_name} has made %{attribute} accessible)"
association:
belongs_to: belong to
has_many: have many
has_and_belongs_to_many: have and belong to many
has_one: have one
description: "%{macro} %{associations}"
expectations:
association_exists: "%{subject_name} records %{macro} %{association}, but the association does not exist"
macro_matches: "%{subject_name} records %{macro} %{association}, got %{subject_name} records %{actual_macro} %{association}"
through_exists: "%{subject_name} records %{macro} %{association} through %{through}, through association does not exist"
source_exists: "%{subject_name} records %{macro} %{association} through %{through}, source association does not exist"
klass_exists: "%{subject_name} records %{macro} %{association}, but the association class does not exist"
join_table_exists: "join table %{join_table} to exist, but does not"
foreign_key_exists: "foreign key %{foreign_key} to exist on %{foreign_key_table}, but does not"
polymorphic_exists: "%{subject_table} to have %{polymorphic_column} as column, but does not"
counter_cache_exists: "%{reflection_table} to have %{counter_cache_column} as column, but does not"
options_match: "%{subject_name} records %{macro} %{association} with options %{options}, got %{actual}"
optionals:
through:
positive: "through %{value}"
source:
positive: "with source %{inspect}"
source_type:
positive: "with source type %{inspect}"
class_name:
positive: "with class name %{inspect}"
foreign_key:
positive: "with foreign key %{inspect}"
dependent:
positive: "with dependent %{inspect}"
join_table:
positive: "with join table %{inspect}"
uniq:
positive: "with unique records"
negative: "without unique records"
readonly:
positive: "with readonly records"
negative: "without readonly records"
validate:
positive: "validating associated records"
negative: "not validating associated records"
autosave:
positive: "autosaving associated records"
negative: "not autosaving associated records"
as:
positive: "through the polymorphic interface %{inspect}"
counter_cache:
positive: "with counter cache %{inspect}"
negative: "without counter cache"
select:
positive: "selecting %{inspect}"
conditions:
positive: "with conditions %{inspect}"
include:
positive: "including %{inspect}"
group:
positive: "grouping by %{inspect}"
having:
positive: "having %{inspect}"
order:
positive: "with order %{inspect}"
limit:
positive: "with limit %{inspect}"
offset:
positive: "with offset %{inspect}"
have_column:
description: "have column(s) named %{columns}"
expectations:
column_exists: "%{subject_name} to have column named %{column}"
options_match: "%{subject_name} to have column %{column} with options %{options}, got %{actual}"
optionals:
type:
positive: "with type %{inspect}"
null:
positive: "allowing null values"
negative: "not allowing null values"
default:
positive: "with default value %{inspect}"
negative: "with default value %{inspect}"
limit:
positive: "with limit %{inspect}"
have_default_scope:
description: "have a default scope with %{options}"
expectations:
options_match: "default scope with %{options}, got %{actual}"
have_index:
description: "have index for column(s) %{columns}"
expectations:
index_exists: "index %{column} to exist on table %{table_name}"
is_unique: "index on %{column} with unique equals to %{unique}, got %{actual}"
optionals:
unique:
positive: "with unique values"
negative: "with non unique values"
table_name:
positive: "on table %{value}"
have_readonly_attributes:
description: "make %{attributes} read-only"
expectations:
is_readonly: "%{subject_name} to make %{attribute} read-only, got %{actual}"
have_scope:
description: "have to scope itself to %{options} when %{scope_name} is called"
expectations:
is_scope: "%{scope_name} when called on %{subject_name} return an instance of ActiveRecord::NamedScope::Scope"
options_match: "%{scope_name} when called on %{subject_name} scope to %{options}, got %{actual}"
optionals:
with:
positive: "with %{inspect} as argument"
validate_acceptance_of:
description: "require %{attributes} to be accepted"
expectations:
requires_acceptance: "%{subject_name} to be invalid if %{attribute} is not accepted"
accept_is_valid: "%{subject_name} to be valid when %{attribute} is accepted with value %{accept}"
optionals:
accept:
positive: "with value %{inspect}"
validate_associated:
description: "require associated %{associations} to be valid"
expectations:
is_valid: "%{subject_name} to be invalid when %{association} is invalid"
validate_confirmation_of:
description: "require %{attributes} to be confirmed"
expectations:
responds_to_confirmation: "%{subject_name} instance responds to %{attribute}_confirmation"
confirms: "%{subject_name} to be valid only when %{attribute} is confirmed"
validate_exclusion_of:
description: "ensure exclusion of %{attributes} in %{in}"
expectations:
is_valid: "%{subject_name} to be valid when %{attribute} is set to %{value}"
is_invalid: "%{subject_name} to be invalid when %{attribute} is set to %{value}"
validate_inclusion_of:
description: "ensure inclusion of %{attributes} in %{in}"
expectations:
is_valid: "%{subject_name} to be valid when %{attribute} is set to %{value}"
is_invalid: "%{subject_name} to be invalid when %{attribute} is set to %{value}"
validate_length_of:
description: "ensure length of %{attributes}"
expectations:
less_than_min_length: "%{subject_name} to be invalid when %{attribute} length is less than %{minimum} characters"
exactly_min_length: "%{subject_name} to be valid when %{attribute} length is %{minimum} characters"
more_than_max_length: "%{subject_name} to be invalid when %{attribute} length is more than %{maximum} characters"
exactly_max_length: "%{subject_name} to be valid when %{attribute} length is %{maximum} characters"
optionals:
within:
positive: "is within %{inspect} characters"
maximum:
positive: "is maximum %{inspect} characters"
minimum:
positive: "is minimum %{inspect} characters"
is:
positive: "is equal to %{inspect} characters"
with_kind_of:
positive: "with kind of %{value}"
validate_numericality_of:
description: "ensure numericality of %{attributes}"
expectations:
only_numeric_values: "%{subject_name} to allow only numeric values for %{attribute}"
only_integer: "%{subject_name} to %{not}allow only integer values for %{attribute}"
only_even: "%{subject_name} to allow only even values for %{attribute}"
only_odd: "%{subject_name} to allow only odd values for %{attribute}"
equals_to: "%{subject_name} to be valid only when %{attribute} is equal to %{count}"
more_than_maximum: "%{subject_name} to be invalid when %{attribute} is greater than %{count}"
less_than_minimum: "%{subject_name} to be invalid when %{attribute} is less than %{count}"
optionals:
only_integer:
positive: "allowing only integer values"
odd:
positive: "allowing only odd values"
even:
positive: "allowing only even values"
equal_to:
positive: "is equal to %{inspect}"
less_than:
positive: "is less than %{inspect}"
greater_than:
positive: "is greater than %{inspect}"
less_than_or_equal_to:
positive: "is less than or equal to %{inspect}"
greater_than_or_equal_to:
positive: "is greater than or equal to %{inspect}"
validate_presence_of:
description: "require %{attributes} to be set"
expectations:
allow_nil: "%{subject_name} to require %{attribute} to be set"
validate_uniqueness_of:
description: "require unique values for %{attributes}"
expectations:
responds_to_scope: "%{subject_name} instance responds to %{method}"
is_unique: "%{subject_name} to require unique values for %{attribute}"
case_sensitive: "%{subject_name} to %{not}be case sensitive on %{attribute} validation"
valid_with_new_scope: "%{subject_name} to be valid when %{attribute} scope (%{method}) change"
optionals:
scope:
positive: "scoped to %{sentence}"
case_sensitive:
positive: "case sensitive"
negative: "case insensitive"