07 Nov '13, 5pm

DRYing up Jasmine Specs with Shared Behavior - Pivotal Labs:

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/drying-up-jasmine-specs-with-share...

Tweets

Rails 4 support with Jasmine 1.3.1

pivotallabs.com 07 Nov '13, 10pm

In case you can’t upgrade to Jasmine 2.0.0 for your project (possibly because it hasn’t been released yet), it’s still pos...

#Dcjs #D3js #GreatNews #MoreHelp >> DC.js for D...

pivotallabs.com 07 Nov '13, 4pm

A recent, shorter-term project prompted us to search for a library that would let us rapidly develop featureful charts tha...

jasmineってpivotalだったんだ / “Pivotal Tools - Pivota...

pivotallabs.com 13 Nov '13, 12am

Project Monitor is a Ruby-on-Rails–based information radiator that collects continuous integration (CI) status and other m...

Pivot Andy Pliszka will be speaking on extendin...

pivotallabs.com 07 Nov '13, 3pm

Pivot Andy Pliszka will be speaking on extending CRuby with native Graph data type at Ruby Conf 2013. Plus, Pivotal Labs i...

Blogged about using JSHint with Jasmine 2

pivotallabs.com 03 Nov '13, 1am

I’ve been using Jasmine 2 on a recent project and I wanted add JSHint as part of our Jasmine build. On a previous project ...

Stubbing Paperclip/ImageMagick to make specs ru...

rubyflow.com 08 Nov '13, 11am

Stubbing Paperclip/ImageMagick to make specs run faster, but with image resolution validation Posted by mencio on November...

@gazay followed this EXACTLY: and got everythin...

railscasts.com 16 Nov '13, 4pm

I have issues trying to test blocking input into a text field. I made a jQuery plugin that forbids inputing number, spaces...

Shared experiences: coffee tastings. #Starbucks #Last10Feet

Shared experiences: coffee tastings. #Starbucks...

starbucksmelody.com 09 Nov '13, 4am

I felt privileged to join a shift supervisor (Dave) at the Pacific Place Starbucks in a coffee event that was part of his ...

"RC4 and You!"

pivotallabs.com 13 Nov '13, 11pm

Microsoft warns against RC4 and SHA1 Threatpost: "Microsoft on Tuesday said that is now recommending to developers that th...