26 Oct '13, 2pm

Make your tests more resilient through internationalization:

Better Tests Through Internationalization Derek Prior October 26, 2013 rails TDD Internationalization (i18n) is the process of adapting computer software to different languages. In Rails, this means extracting all strings from you views and controllers and placing them (by default) into YAML files that live in config/locales . So why would you want to bother with this if your site is only available in English? The oft-cited reason for turning to i18n before there's even a hint of needing to support additional languages is that it's simply easier to do from the start. This is absolutely true but there are several other benefits to i18n that make it a worthwhile pursuit and something we suggest for all applications. Today we’re going to focus on the effect i18n has on your tests. i18n Makes Your Tests More Resilient Consider the very basic feature spec and view below: # spec...

Full article: http://robots.thoughtbot.com/better-tests-through-interna...

Tweets

Better Tests Through Internationalization

rubyflow.com 30 Oct '13, 7pm

Better Tests Through Internationalization Posted by croaky on October 30, 2013 — 0 comments Internationalization (i18n) is...

Using WebMock gem in tests and web application ...

rubyflow.com 27 Oct '13, 12am

Using WebMock gem in tests and web application services Posted by shvets on October 27, 2013 — 0 comments You can us WebMo...

@ballPtPenguin Yes:

guides.rubyonrails.org 05 Nov '13, 3pm

In specific cases, it would make sense to set the locale from client-supplied information, i.e. not from the URL . This in...

How To Stub External Services In Tests

robots.thoughtbot.com 26 Oct '13, 6am

$ rspec spec/features/external_request_spec.rb F Failures: 1) External request queries FactoryGirl contributors on Github ...

You wanna have a minimal server for your tests?...

onestepback.org 02 Nov '13, 12pm

) have written about a single line web browser in Python. I wondered what it would look like in Ruby. Here’s one answer… r...

Resilient Ducks Hold Steady In The Polls

goducks.com 27 Oct '13, 7pm

by Rob Moseley Editor, GoDucks.com Oregon continued to hold steady in the polls Sunday morning, in the wake of Saturday's ...

Chickens out-perform toddlers in math tests

treehugger.com 21 Oct '13, 11am

The most recent outbreak of salmonella has got people talking a lot about poultry. With chicken still being shipped out of...

Resilient Ducks Hold Steady In The Polls #GoDucks

goducks.com 27 Oct '13, 6pm

by Rob Moseley Editor, GoDucks.com Oregon continued to hold steady in the polls Sunday morning, in the wake of Saturday's ...

How To Stub External Services In Tests #rails

robots.thoughtbot.com 01 Nov '13, 4pm

$ rspec spec/features/external_request_spec.rb F Failures: 1) External request queries FactoryGirl contributors on Github ...