pivotal/jasmine-gem — pull request #95 by bumi (2012-08-07 16:43:32+00:00)
Title: Add support for phantomjs ci driver 

this is an early pull-request I wanted to put up for discussion.
I've been trying to to run jasmine with phantomjs. (note I'm new to both ;) ) There are some gems that try to integrate the jasmine-gem with phantomjs but the jasmine-gem already supports a selenium driver. So I was trying to go one step to allow configurable drivers and add a phantomjs driver.

I guess the best phantomjs driver is poltergeist by the incredible jonleighton. Which integrates phantomjs with capybara. Currently there is no separate driver so I've extracted the relevant part from that gem.
I'm not quite happy yet with the solution and in general quite some parts are missing specs but I'd love to hear your feedback on this.

in the current implementation you would run JASMIN_DRIVER=phantomjs rake jasmine:ci if you would like to use phantomjs.

what do you think?