Re: [rspec-users] Integrate or isolate views?

2009-06-30 Thread Zach Moazeni
Jesse Crockett wrote: IMO, this is what the RSpec Book needs (at this point in beta), real-world conclusions based on experience, rather than "take it on faith that you will 'revel' in the rewards." Thanks, Sarah -- Zach Moazeni

Re: [rspec-users] should_receive with a block

2009-07-07 Thread Zach Moazeni
k ) do_call end Or am I dreaming? Cheers, Doug. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users -- Zach Moazeni http://simplechatter.com _

Re: [rspec-users] [Rails] Controller testing problem

2009-07-07 Thread Zach Moazeni
g variables). What's worse I can't test assigns hash - it doesn't get proper values assigned. Is there a way for RSpec to skip the filters in tests? Or to stop ApplicationController to derive from SiteController? Thanks, Ignacy -- Zach Moazeni http://simplechatter.com

Re: [rspec-users] [Rails] Controller testing problem

2009-07-07 Thread Zach Moazeni
cationController def foo p "need to do something with #...@bar}" end end Here's a gist in case the code formatting goes awry http://gist.github.com/142050 . On Jul 7, 2009, at 8:29 AM, Zach Moazeni wrote: Hey Ignacy, I think I'm in the minority on this one, but I te

Re: [rspec-users] before(:all) and nested contexts

2009-07-09 Thread Zach Moazeni
ner http://www.woobius.com http://danieltenner.com _______ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users -- Zach Moazeni http://simplechatter.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] before(:all) and nested contexts

2009-07-09 Thread Zach Moazeni
once? On Jul 9, 2009, at 10:18 AM, Zach Moazeni wrote: Hey Dan, 1 approach you could do is define a method within the outer describe that is called within the inner describe and within each test not contained by an inner describe. describe "Some functionality"

[rspec-users] A case study on view specs

2008-02-16 Thread Zach Moazeni
I wanted to thank all the developers working a great testing framework. We switched to rspec on our last project, and haven't looked back. I know testing views is a touchy subject for some. After having a surprisingly great time using them on one of our projects, we decided to adopt it for

Re: [rspec-users] Problems with form_for and partials

2008-03-13 Thread Zach Moazeni
We've been going down this route: http://pastie.caboo.se/165265 We use mocha for our mocking and originally we mocked out the form builder, but the specs felt crufty. We then converted to instantiating the FormBuilder and passing it to partials that needed it. For the views that send in th

Re: [rspec-users] Problems with form_for and partials

2008-03-14 Thread Zach Moazeni
electors than abstracting up one would make our specs more readable. Damn "To Code" list... -Zach Begin forwarded message: From: Zach Moazeni <[EMAIL PROTECTED]> Date: March 13, 2008 1:46:34 PM GMT-04:00 To: rspec-users Subject: Re: [rspec-users] Problems with form_for and partials