Help with test Rspec

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).

How can this problem to write tests?

Ruby Users Ruby Users wrote:

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?

Best,

That's three words, not two. You mean the check is in the additional words, it is considered a space word? Сan give an example that you have in mind?

[Please quote when replying -- it makes the discussion easier to follow.]

Ruby Users Ruby Users wrote:

That's three words, not two. You mean the check is in the additional words, it is considered a space word? Сan give an example that you have in mind?

I don't understand a word of what you wrote here. Please try again.

Best,

That's three words, not two. I do not understand what you mean, please explain. Give an example, please.

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.