BDD’n All Over The Place

I've been working on quite a range of different projects recently, not all of which are Ruby/Rails. One is in PHP and one is a cross platform widget that will work for the Yahoo Widgets engine as well as OS X's Dashboard. Of these two projects I've managed to work some BDD into both of them. I thought I'd spread the word on the packages I'm using. For javascript I'm using "JSSpec": and for PHP I'm using "PHPSpec": Neither are documented very much, and both are less than 6 months old. They're limited, but I've been able to get what I need out of them and its been nice to be able to keep the same dev style even if I have to deal with JS and PHP. Here's a couple pieces of syntax. h2. PHPSpec

class DescribePage extends PHPSpec_Context{

  public function before(){
    $this->p = new Page();

  public function itShouldReturnAShortUrl(){
    $this->p->url = "";

 public function itShouldNotBelongToAQueryWhenCreated(){


h2. JSSpec
describe('Get Song From XML', {
  before_each : function() {
    podcast = new Podcast()
    podcast.xmlUrl = 'podcast_xml_fixture.xml';
    'should parse song title from xml': function() {
      song = podcast.parseTune();
      expect(song[0]['title'].strip()).should_be("Willoughby - Frankenstein");
      'should parse song url from xml': function() {
        song = podcast.parseSong();
      'should create song': function() {