Mat Schaffer on 13 Sep 2007 15:46:21 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PhillyOnRails] rspec slides

  • From: Mat Schaffer <schapht@gmail.com>
  • To: talk@phillyonrails.org
  • Subject: Re: [PhillyOnRails] rspec slides
  • Date: Thu, 13 Sep 2007 11:45:44 -0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; bh=00i7U8VCSxL94aJ59JUGvvCL92/OXkU7SCNHFcwqrJw=; b=fKl/u61ZU3cD1OboxXyh5US3XuGG4J1gFzlvanCYIgK5KLix7Mf9ZG6XZjiUoJKjNfZB0BXCRJbQ4Oj0aP0coTxKCLTM4zw70e3GHkwIqB8MdTAtrxntQGxffpASSyJh8KqvMB7eItZ5db1grLQE6QkEW1eC2UFlkKwibdhurP0=
  • List-archive: <http://lists.phillyonrails.org/pipermail/talk>
  • Reply-to: talk@phillyonrails.org
  • Sender: talk-bounces@phillyonrails.org


On Sep 13, 2007, at 11:09 AM, Colin A. Bartlett wrote:
It's got 'em now. Haven't tried it but Story Runner sounds cool:
http://evang.eli.st/blog/2007/9/1/user-stories-with-rspec-s-story- runner

I remember reading this before and thinking "That's way too many strings". I still think that, but I love where it's headed. I can't wait to see something like this that would even allow you to bind common natural language requirements to code w/o explicitly providing a block.


For example:
Given "a foo named", "bob"

without a block could be programatically interpretted as Foo.create! :name => bob

Even neater would be to design some sort of set of stateful functions and method_missing that allowed you to just write:
Given a foo named bob


and get the same result via the ruby interpretter.  I love it!
-Mat
_______________________________________________
To unsubscribe or change your settings, visit:
http://lists.phillyonrails.org/mailman/listinfo/talk