19 Mar '13, 11am

"Scopes ... evade easy unit testing." says @nertzy at

Active Record scopes are an interesting thing to test. In projects I’ve worked on, I have seen many different patterns of testing, some much better than others. A little over two years ago I wrote the gem pg_search , which provides a sort of Domain-Specific Language (DSL) for creating Active Record scopes that take advantage of PostgreSQL’s built-in full-text search. For example, the following code will set up a scope that accepts query as a string and returns records whose name matches that query. The records will be ordered by relevance. class Book include PgSearch pg_search_scope :search_by_name, :against => :name end Book.search_by_name("catch") # => [#<Book id: 3, name: "Catch 22">, # #<Book id: 7, name: "The Catcher in the Rye">] In pg_search’s test suite , I found myself needing to test the results of scopes over and over again. In doing so, I believe I have develop...

Full article: http://pivotallabs.com/testing-active-record-scopes/

Tweets

"You risk building a broken product when you tr...

pivotallabs.com 19 Mar '13, 11am

A/B testing is probably not worth your time. When you start hooking metrics up to your product, the feedback is addictive....

15:06: NEW: Active fire (See for details)

winnipegtransit.com 24 Mar '13, 8pm

Service Advisory Active fire As of 15:03, route 85 is under the effect of a detour. This detour affects the following stop...

Testing Cosmetics on Animals is Going Out of Style

care2.com 19 Mar '13, 11pm

I have no idea how they tested it on animals. Besides, why did they have to test the lipsticks and body lotions?? What che...

16:40: ENDED: Active fire (See for details)

winnipegtransit.com 24 Mar '13, 9pm

Service Advisory Active fire As of 16:34, route 85 is under the effect of a detour. This detour affects the following stop...

Bing

Bing

searchengineland.com 19 Mar '13, 7pm

Some are spotting new author images appearing in Bing’s search results today, similar to the way Google shows author image...

Wow this talk makes you want to work a pivotal ...

pivotallabs.com 19 Mar '13, 7pm

Ian McFarland, Principal and VP of Technology for Pivotal Labs, reprises his popular RailsConf 2010 talk. Ian describes th...

Testing new skincare or foundations:

Testing new skincare or foundations:

soloverly.blogspot.com 25 Mar '13, 1pm

I wait till my skin is either completely or mostly clear OR it's been breaking out for awhile and I can't stop it (this is...

Sweetness

pivotallabs.com 19 Mar '13, 6pm

I’ve been working with my client, Unpakt , for a while now. One of their core values is making people’s lives easier. They...