04 May '12, 7am

Refactoring common specs with @jasmineBDD to achieve #dry #tdd

When writing nicely encapsulated code and you have a group of objects that share an interface (pick your favorite patterns), you often want to share your test code as well. If the system models financial accounts with credits and debits, and you make a change to the reconciliation code, you want to run a core set of specs against all cash, loan, and credit card account objects. People ask how to do this in JavaScript on the Jasmine mailing list every so often. So here's an example of "Shared Example Groups" in Jasmine . This Game spec looks totally fine for a basic ball game. But what if I want to have multiple different types of ball games? Here are specs for Basketball and (American) Football: The specs related to the Game itself are inline. That doesn't feel very DRY and really, we want to test the interface with the same code. We're working in JavaScript. So we write a...

Full article: http://pivotallabs.com/users/dwfrank/blog/articles/1720-d...

Tweets

Fact: Climate change poses serious problems for plant development. #environment

Fact: Climate change poses serious problems for...

alternativeconsumer.com 06 May '12, 5pm

Climate change poses serious problems for plant development The effects of Climate Change have been widely discussed and d...

Officials troubled over behavior of U.S. troops

armytimes.com 03 May '12, 10pm

http://www.armytimes.com/news/2012/05/military-panetta-discipline-problems-050312w/ Officials troubled over behavior of U....

spine (0.1.4): Inline specs for your unit tests

rubygems.org 05 May '12, 7pm

spine 0.1.4 Inline specs for your unit tests install gem install spine Download Documentation Subscribe Stats Authors Silv...

Baby Jasmine Learns To Roll Over [PICS+VIDEO] via @tekkaus

Baby Jasmine Learns To Roll Over [PICS+VIDEO] v...

tekkaus.com 06 May '12, 3pm

Little Jasmine is a bit more advanced compared to her elder brother when it comes to honing her motor skills. Last month s...

Jasmine Girl Sleeping In Mommy's Arms via @tekkaus

Jasmine Girl Sleeping In Mommy's Arms via @tekkaus

tekkaus.com 05 May '12, 8pm

My wife noticed little Jasmine was already sleeping while we were walking back to get our car. All the carrying must have ...