Re: [rspec-users] plain text stories

2007-10-22 Thread aslak hellesoy
On 10/22/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > Thanks to discussions on this list, suggestions from many of you and a > patch from Pat Maddox, we now have Plain Text User Stories in Story > Runner. > > Read more: > > http://blog.davidchelimsky.net/articles/2007/10/21/story-runner-in-plai

Re: [rspec-users] Testing layouts with RSpec on Rails

2007-10-22 Thread David Chelimsky
On 10/21/07, Steve <[EMAIL PROTECTED]> wrote: > On Tue, 09 Oct 2007 21:12:09 +0100, Matt Patterson wrote: > > > It occured to me that it would be nice to have a spec that would barf > > if I ever nuked the layout's yield (or, indeed, one of its > > content_for yields), mainly because they're the in

Re: [rspec-users] Testing layouts with RSpec on Rails

2007-10-22 Thread David Chelimsky
On 10/22/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > On 10/21/07, Steve <[EMAIL PROTECTED]> wrote: > > On Tue, 09 Oct 2007 21:12:09 +0100, Matt Patterson wrote: > > > > > It occured to me that it would be nice to have a spec that would barf > > > if I ever nuked the layout's yield (or, indeed,

Re: [rspec-users] Testing layouts with RSpec on Rails

2007-10-22 Thread David Chelimsky
On 10/22/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > Actually, it turns out that you can do this in a view spec: > > render "/path/to/my/file.html.erb", :layout => "application" > > and it will render with the layout. So you *could* (in theory, I > haven't done this yet) do something like this

Re: [rspec-users] Preferred mock framework

2007-10-22 Thread Jonathan Linowes
On Oct 21, 2007, at 10:34 AM, David Chelimsky wrote: > > Thanks. Unfortunately, as the list of users grows, I do have to change > a bit if I want to get my other work done, write a book, and still > have a life. Luckily, there are some thoughtful people, including > yourself, emerging as mentors

Re: [rspec-users] plain text stories

2007-10-22 Thread Pádraic Brady
Is there any adjective not covered so far ;). Great work, guys. Pádraic Brady http://blog.astrumfutura.com http://www.patternsforphp.com OpenID Europe Foundation - Original Message From: aslak hellesoy <[EMAIL PROTECTED]> To: rspec-users Sent: Monday, October 22, 2007 9:08:52 AM Sub

Re: [rspec-users] Testing layouts with RSpec on Rails

2007-10-22 Thread Jonathan Linowes
On Oct 22, 2007, at 12:18 AM, Steve wrote: > On Tue, 09 Oct 2007 21:12:09 +0100, Matt Patterson wrote: > >> It occured to me that it would be nice to have a spec that would barf >> if I ever nuked the layout's yield (or, indeed, one of its >> content_for yields), mainly because they're the integr

[rspec-users] An error on edge at -r 2767

2007-10-22 Thread sinclair bain
Morning, Having done an svn up this morning all my specs are broken with the following: SQLite3::SQLException in ServiceConfig with minimum set of valid parameters should return nil for the service path' SQL logic error or missing database C:/development/sandbox/prototypes/user_admin_client/config

[rspec-users] installing rspec/rspec_on_rails as system wide generator (or similar)

2007-10-22 Thread Alastair Moore
Hi all, What would be the best/easiest way of installing rspec as a system wide generator so I'm not having to download it or ./script/plugin install it every time? Thanks, Alastair - Alastair Moore Freelance web design, development and consultancy t. 07983 983945 e. [EMAIL PROTECTED]

Re: [rspec-users] plain text stories

2007-10-22 Thread Dan North
Haha - brilliant! I was just putting something together myself based on the original thread but it looks like Pat has a) beaten me to it and b) made it look really elegant. Nice work. I love it when a community discussion turns into something as cool as this. And so quickly too :) Cheers, Dan On

Re: [rspec-users] plain text stories

2007-10-22 Thread Pat Maddox
On 10/22/07, Dan North <[EMAIL PROTECTED]> wrote: > Haha - brilliant! I was just putting something together myself based on the > original thread but it looks like Pat has a) beaten me to it and b) made it > look really elegant. Just so you know, David did all the work. There was one little piece

Re: [rspec-users] installing rspec/rspec_on_rails as system wide generator (or similar)

2007-10-22 Thread Ben Mabey
Well, you do want the plugin installed in every app so that app is ientirely self conatained. I have a bash script called rspecify that does all of the regular rspec commands to get up and running. Are you looking for something similar? Here is my script (BTW, I use piston to manage my plug

Re: [rspec-users] Testing layouts with RSpec on Rails

2007-10-22 Thread Jay Levitt
On 10/22/2007 5:25 AM, David Chelimsky wrote: > $yielded = false ::Cough:: I believe the past tense is "yelt". Jay ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Testing layouts with RSpec on Rails

2007-10-22 Thread Steve
On Mon, 22 Oct 2007 04:49:50 -0500, David Chelimsky wrote: > On 10/22/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > Actually, it turns out that you can do this in a view spec: > > render "/path/to/my/file.html.erb", :layout => "application" > > and it will render with the layout. So you *coul

Re: [rspec-users] Testing layouts with RSpec on Rails

2007-10-22 Thread Steve
On Mon, 22 Oct 2007 10:40:45 -0400, Jonathan Linowes wrote: > I'm not sure if this is what you're after but I've created this > custom matcher to my spec_helper.rb, then in my controller spec I can > say > > # custom matchers > #- > class UseLayout >def initialize(expe

Re: [rspec-users] Testing layouts with RSpec on Rails

2007-10-22 Thread Steve
On Mon, 22 Oct 2007 10:40:45 -0400, Jonathan Linowes wrote: > > I'm not sure if this is what you're after but I've created this > custom matcher to my spec_helper.rb, then in my controller spec I can > say > # custom matchers > #- > class UseLayout >def initialize(expec

Re: [rspec-users] Testing layouts with RSpec on Rails

2007-10-22 Thread David Chelimsky
On 10/22/07, Steve <[EMAIL PROTECTED]> wrote: > On Mon, 22 Oct 2007 04:49:50 -0500, David Chelimsky wrote: > > > On 10/22/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > Actually, it turns out that you can do this in a view spec: > > > > render "/path/to/my/file.html.erb", :layout => "applicatio

Re: [rspec-users] Testing layouts with RSpec on Rails

2007-10-22 Thread Steve
On Mon, 22 Oct 2007 10:40:45 -0400, Jonathan Linowes wrote: > I'm not sure if this is what you're after but I've created this > custom matcher to my spec_helper.rb, then in my controller spec I can > say > > # custom matchers > #- > class UseLayout >def initialize(expe

Re: [rspec-users] Testing layouts with RSpec on Rails

2007-10-22 Thread Steve
On Tue, 23 Oct 2007 00:55:40 +, Steve wrote: > This looked promising, but when I try calling controller.layout, I get > "undefined method 'layout'" on otherwise working controller specs. I > didn't think ActionController exposed a layout property. If this something > you exposed yourself? > >

Re: [rspec-users] Testing layouts with RSpec on Rails

2007-10-22 Thread Jonathan Linowes
Its a typo (sort of). I actually call it on response rather than controller, which does have the layout it "should use application layout" do do_it response.should use_layout("application") end On Oct 22, 2007, at 8:55 PM, Steve wrote: > On Mon, 22 Oct 2007 10:40:45 -0400, Jon

Re: [rspec-users] Testing layouts with RSpec on Rails

2007-10-22 Thread Steve
On Mon, 22 Oct 2007 20:06:50 -0500, David Chelimsky wrote: >> It would feel even less hackish if "render" supported :text like >> rails render does. So you could do this: >> >> render :text => 'yielded', :layout => 'application' >> response.should have_tag('div', 'yielded') > > Good idea. Feature

Re: [rspec-users] plain text stories

2007-10-22 Thread Andy Watts
This is awesome! Many thanks - Andy David Chelimsky-2 wrote: > > Thanks to discussions on this list, suggestions from many of you and a > patch from Pat Maddox, we now have Plain Text User Stories in Story > Runner. > > Read more: > > http://blog.davidchelimsky.net/articles/2007/10/21/story-