Closed gwagener closed 10 years ago
Is it worth adding a test for this?
I don't think so. You'd basically have a full feature test that has to load the page and test if the bit is equal to phrase.name
. It doesn't add significant confidence while adding significantly to testing time.
https://github.com/unixcharles/refinerycms-copywriting/blob/master/app/views/refinery/copywriting/admin/phrases/_phrase.html.erb#L6 does not capitalize the phrase name. The problem with
capitalize
is that it will make any other words lowercase. For instance "My URL" becomes "My url".