There is a model with the Category fields parent_id and name_category.
Golf name_category should consist of two words separated by spaces, each
of which begins with a capital letter, such as "Ruby On Rails".
There's also a selector Category.by_parent_id (id).
There is a model with the Category fields parent_id and name_category.
Golf name_category should consist of two words separated by spaces, each
of which begins with a capital letter, such as "Ruby On Rails".
That's three words, not two.
There's also a selector Category.by_parent_id (id).
How can this problem to write tests?
What are you trying to test for? What's your question or problem?
That's three words, not two. I do not understand what you mean, please
explain.
Give an example, please.
Please quote appropriately - I can't easily tell where your comments
start, and what they relate to (especially when you write *exactly*
the same as the previous poster!)
Bear in mind: this is read by many people as email from the Google
mailing list, not on "ruby-forum.com", so we can't just "look up the
page" to see what previous posts were.
Ruby Users Ruby Users wrote:
Golf name_category should consist of two words separated by spaces, each
of which begins with a capital letter, such as "Ruby On Rails".
I think the point was, that your example of a "TWO words separated by
spaces" consisted of THREE words:
word 1: "Ruby"
word 2: "on"
word 3: "Rails"
Do you see?
So if you would like to clarify your question, people may be able to help.
Regards,
PS It's appreciated (by some) that English is not everyone's first
language (or maybe even second or third), so elementary grammatical
errors can be overlooked, but confusions that do significantly change
the meaning of a question or the direction an answer may need to go in
do need to be clarified.