[rspec-users] specifying an HTTP status code

2007-12-01 Thread Francis Hwang
. Is there a less-documented feature I'm missing? Thanks, Francis Hwang http://fhwang.net/ ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] how do I spec my Rails routes?

2007-12-16 Thread Francis Hwang
' Is there a way to have a controller spec test site-wide routing? It seems to me that the get and post methods are just controller- specific routing. If I can't do it in a controller spec, where else should I do it? Thanks, Francis Hwang http://fhwang.net

[rspec-users] Rails: possible routing discrepancy

2007-12-23 Thread Francis Hwang
kind. Is it possible the RSpec request isn't handling route generation correctly? Or should I be writing my spec differently? Thanks, Francis Hwang http://fhwang.net/ ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org

Re: [rspec-users] Mocks? Really?

2007-12-29 Thread Francis Hwang
while and look for it. It's got to be somewhere in my apartment, and the whole thing's not even that big. Francis Hwang http://fhwang.net/ ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Mocks? Really?

2007-12-30 Thread Francis Hwang
On Dec 30, 2007, at 1:52 PM, Jay Levitt wrote: On 12/29/2007 5:46 PM, Francis Hwang wrote: - How quickly the business needs change. Designs for medical imaging software are likely to change less quickly than those of a consumer- facing website, which means you might have more or less time

Re: [rspec-users] Mocks? Really?

2007-12-30 Thread Francis Hwang
or more years ago ... I suspect part of that luxury translates in being able to actually design _less_, since the cost of fixing our design mistakes in the future goes down significantly. Francis Hwang http://fhwang.net/ ___ rspec-users mailing list

Re: [rspec-users] Mocks? Really?

2008-01-01 Thread Francis Hwang
that amorphously hints at a future design -- and in those cases, a strong test suite is what prevents you from shooting yourself in the foot. Francis Hwang http://fhwang.net/ ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman

[rspec-users] setting request.raw_post with rspec-rails

2008-07-09 Thread Francis Hwang
... is there a way to do this? We have some REST-ish POSTs we'd like to spec out. In the controller this gets accessed with request.raw_post.to_s, is there a way to set this with rspec? Thanks as always, Francis ___ rspec-users mailing list

Re: [rspec-users] setting request.raw_post with rspec-rails

2008-07-10 Thread Francis Hwang
Yup, that's exactly what I needed -- thanks, Francis Hwang http://fhwang.net/ On Jul 9, 2008, at 9:53 PM, David Chelimsky wrote: On Jul 9, 2008, at 5:36 PM, Francis Hwang wrote: ... is there a way to do this? We have some REST-ish POSTs we'd like to spec out. In the controller this gets

[rspec-users] DB transactions w/ RSpec

2009-05-05 Thread Francis Hwang
Sorry if this has been answered elsewhere, Google was not very helpful to me on this one. If I'm running a model spec and am one of those benighted souls who wants to hit the DB while doing so, is there a way for me to tell RSpec to skip transactions? In Test::Unit I can say uses_transaction

Re: [rspec-users] DB transactions w/ RSpec

2009-05-06 Thread Francis Hwang
On Wed, May 6, 2009 at 9:47 AM, Nicholas Van Weerdenburg vanwe...@gmail.com wrote: As far as I can tell, RSpec simply uses inherited TestCase capabilities for transactions, including use_transactional_fixtures (it's config setting is simply passed on) and likely uses_transaction. I'm guessing

Re: [rspec-users] DB transactions w/ RSpec

2009-05-06 Thread Francis Hwang
=#{self.run_in_transaction?} end runs as expected, providing false when the uses_transaction is set, and true otherwise (assuming   config.use_transactional_fixtures = true). Regards, Nick On Wed, May 6, 2009 at 12:43 PM, Francis Hwang s...@fhwang.net wrote: On Wed, May 6, 2009 at 9:47 AM

Re: [rspec-users] top posting and plain text

2009-05-06 Thread Francis Hwang
How about both top and bottom posting? Francis Hwang http://fhwang.net/ On May 6, 2009, at 8:46 PM, Ben Mabey wrote: lol.. Yes. :) Sarcasm somethings doesn't come across well over email I suppose. How about both top and bottom posting? Francis Hwang http://fhwang.net