← Back to Upcase

How to test text changes in an app?

(Kim Khan) #1

What is the proper procedure for testing text changes made to a website?

I need to know what are the best type of tests for checking text changes in various locations of a website.

Currently, I am manually checking each page of the website. I know there must be a better way.


(Derek Prior) #2

What do you mean by text changes? Are you testing static copy on your pages? If so - don’t. If it’s dynamic text, something like Welcome, <%= user.name %>, then this is best done leveraging i18n both in the view and in your specs. I have a blog post coming next next week on just that topic.

(Kim Khan) #3

Actually this is a static text change that is in several html.erb files. This is a phrase that was used on several view files.

I look forward to checking out your blog and learning about i18n.

(Derek Prior) #4

@kimkhan, here’s the post: http://robots.thoughtbot.com/better-tests-through-internationalization/