File: | t/view-text-helpers.t |
Coverage: | 100.0% |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | #!/usr/bin/env perl -w | ||||||
2 | 1 1 1 | 99 10 10 | use strict; | ||||
3 | 1 1 1 | 215 5 18 | use Test::More tests => 3; | ||||
4 | |||||||
5 | 1 1 1 | 87 5 16 | use Railsish::View::Helpers::TextHelper; | ||||
6 | |||||||
7 | 1 | 10 | is pluralize(1, "person"), "person"; | ||||
8 | 1 | 8 | is pluralize(10, "person"), "people"; | ||||
9 | 1 | 11 | is pluralize(42, "person", "users"), "users"; | ||||
10 | |||||||
11 | |||||||
12 | |||||||
13 | |||||||
14 |