Re: [rspec-users] HTML Story Formatter

2008-07-27 Thread Jonathan Leighton
On Sat, 2008-07-26 at 16:38 -0600, Ben Mabey wrote: > Any other suggestions/ideas of how to handle the external JS files? Wasn't there some Google-hosted JS lib repository launched a little while ago? That could be used for Prototype? Jon -- Jonathan Leighton http://jonathanleig

Re: [rspec-users] HTML Story Formatter

2008-07-24 Thread Jonathan Leighton
y_html_includes ] do > if ENV['CC_BUILD_ARTIFACTS'] > ruby "stories/all.rb --format html > > #{File.join(ENV['CC_BUILD_ARTIFACTS'], 'Stories', 'index.html')}" > else > ruby "stories/all.rb --format plain --co

[rspec-users] HTML Story Formatter

2008-07-24 Thread Jonathan Leighton
Hiya, I am trying to use the HTML Story Formatter in conjunction with CruiseControl.rb. I have got it outputting the stories to a file, but I notice there are CSS and JS files linked in the head, which don't appear to be anywhere in the rspec repository. Are these files available and if so where?

[rspec-users] Routes not working properly inside "helper"

2008-07-23 Thread Jonathan Leighton
I have been upgrading my helper specs due to the recent change regarding mixing in modules: http://blog.davidchelimsky.net/2008/5/29/rspec-waving-bye-bye-to-implicit-module-inclusion Unfortunately I have hit a snag. It seems that when the helper uses routes I get an error about a nil object. For i

Re: [rspec-users] Specifying a few valid values

2008-07-17 Thread Jonathan Leighton
On Thu, 2008-07-17 at 09:40 -0500, David Chelimsky wrote: > On Thu, Jul 17, 2008 at 9:37 AM, Zach Dennis <[EMAIL PROTECTED]> wrote: > > Perhaps... > > > > When "I login with invalid credentials" > > Then "I see that I have not been logged in" > > Or > > When I login with invalid credential

Re: [rspec-users] Specifying a few valid values

2008-07-17 Thread Jonathan Leighton
the user sees the form again, instead of moving on through the application? I guess I could test that they *don't* get redirected? Cheers, Jon -- Jonathan Leighton http://jonathanleighton.com/ ___ rspec-users mailing list rspec-users@rubyf

Re: [rspec-users] Specifying a few valid values

2008-07-17 Thread Jonathan Leighton
step, specifically the step is "Then the form should be shown". I guess I could split them into "Then the new/edit form should be shown" but it doesn't seem a huge issue... -- Jonathan Leighton http://jonathanleighton.com/

[rspec-users] Specifying a few valid values

2008-07-17 Thread Jonathan Leighton
I have a Rails spec where I want to check that the action_name is either "create" or "update". I can think of a couple of ways to do it, but none of them reads fantastically well: 1. ["create", "update"].should include(controller.action_name) Problem: The error message, should it fail, is: expect

Re: [rspec-users] Profiling specs

2008-07-15 Thread Jonathan Leighton
On Tue, 2008-07-15 at 13:40 +0200, Piotr Wlodarek wrote: > Jonathan Leighton wrote: > > Is there any simple, easy way to profile the running of my specs? It has > > recently starting being way slower and I want to know why :) > > spec --format profile Thanks, but I was mo

[rspec-users] Profiling specs

2008-07-15 Thread Jonathan Leighton
Hi, Is there any simple, easy way to profile the running of my specs? It has recently starting being way slower and I want to know why :) Cheers, Jon ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-use

Re: [rspec-users] rspec + github == !submodules

2008-04-17 Thread Jonathan Leighton
ou do consider submodules to be a good idea if you are using and wish to track third-party upstream code, for example plugins in a Rails project? Cheers -- Jonathan Leighton http://jonathanleighton.com/ ___ rspec-users mailing list rspec-users@ruby

Re: [rspec-users] rspec + github == !submodules

2008-04-17 Thread Jonathan Leighton
butingpatches > for more info. > > Cheers, > David > ___ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users -- Jonathan Leighton http://jonathanleighton.com/ ___

Re: [rspec-users] [ANN] rspec_hpricot_matchers 1.0: have_tag on hpricot

2008-03-27 Thread Jonathan Leighton
> > > > -- > http://www.coreyhaines.com > The Internet's Premiere source of information about Corey Haines > _______ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users -- Jonath

Re: [rspec-users] Shoulda

2008-01-10 Thread Jonathan Leighton
" end end Some of the above is me using my creative license but you get the idea. Just thought it might spark some ideas/opinions... it's certainly not a perfect implementation/API but I've found the general idea quite useful. I personally think this is the right level at which

Re: [rspec-users] Shoulda

2008-01-10 Thread Jonathan Leighton
posts.blogger_id column actually exists), but you've got nothing interesting to poke it with... On the other hand maybe it's stupid testing that as you are really testing the database, which is a different layer entirely. But in practise I know it&#x

Re: [rspec-users] Shoulda

2008-01-10 Thread Jonathan Leighton
than whether it's defined? -- Jonathan Leighton http://jonathanleighton.com/ ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] StoryRunner docs/guidance

2007-12-21 Thread Jonathan Leighton
ted by the fact that I've never really used integration testing that much). A full example of testing a Rails controller would be extremely useful to me. Thanks, Jon -- Jonathan Leighton, Web Developer http://jonathanleighton.com/ ___ rspec-users mai