07 Mar '12, 10am

interesting idea to keep markup in sync between fixtures and real mark up #jasmine

Javascript tests are good, but manually-maintained HTML fixtures are painful. It's time consuming to keep fixture markup in sync with the actual markup produced by your app. Despite best efforts, deviations arise, leading to bugs and false positives in tests. For the past few months on Mavenlink , we've been pre-generating real-life fixture markup and making it available in our javascript tests. Results have been positive. The basic approach is simple: 1) Pre-generate real-life markup using any convenient mechanism. 2) When javascript tests run, load the pre-baked markup into the DOM for access by JS code. For #1, we use a small set of RSpec controller specs that exist solely to generate fixtures. For #2, we retrieve fixture markup from our Jasmine server via ajax, and inject it into the DOM with jQuery. While our approach leans on the various bits of our stack, any part o...

Full article: http://pivotallabs.com/users/jb/blog/articles/1152

Tweets

An Idea via @Bolehland_net

An Idea via @Bolehland_net

bolehland.net 07 Mar '12, 2pm

March 7th, 2012 - I have short term memory. - Dan Khoo &nbsp&nbsp Tweet William Posted on 2012-03-07, 11:41:59 first :P !!...

Video: Augmented Reality enhances MWC: via @ee_times

Video: Augmented Reality enhances MWC: via @ee_...

eetimes.com 06 Mar '12, 12pm

LONDON--Augmented Reality (AR) is the process of layering computer generated graphics on top of real world environments, e...

Toddlers' mouths taped shut, bodies bound to keep them still in JB kindergarten

Toddlers' mouths taped shut, bodies bound to ke...

singaporeseen.stomp.com.sg 02 Mar '12, 7am

Two untrained female caretakers at a kindergarten in Johor Bahru bound children in cloth and taped their mouths shut in or...

Yandex Tries to Solidify Search Dominance, Keep Google Down in Russia

Yandex Tries to Solidify Search Dominance, Keep...

searchenginewatch.com 08 Mar '12, 8am

The search industry is one of the most competitive in the world and has been for many years and on so many levels, but rec...

The Real Estalker: UPDATE: Jennifer Aniston: It...

realestalker.blogspot.com 06 Mar '12, 12am

Brace yourselves, butter beans... It was only about 10 (or so) months ago that rom-com queen Jennifer Aniston plunked down...

How to keep sustainability perceptions in line with performance

How to keep sustainability perceptions in line ...

greenbiz.com 05 Mar '12, 1pm

Looked at a certain way, responsible and sustainable business is an idea whose time has come. Sustainability functions are...