Re: [rspec-users] fixtures in before(:all)

2007-09-08 Thread aslak hellesoy
On 9/7/07, Geoffrey Wiseman [EMAIL PROTECTED] wrote: I was planning on using a fixture within a description that didn't modify the fixture, so I put it in a before(:all) block: describe Customer, xml do fixtures :customers before(:all) do one = customers(:one) end # ...

Re: [rspec-users] Preconditions

2007-09-08 Thread Pat Maddox
On 9/8/07, Wincent Colaiuta [EMAIL PROTECTED] wrote: El 8/9/2007, a las 2:15, Pat Maddox escribió: * Descriptions should be broken up based on the required fixture. I don't split them up until I actually have to. For example, if I'm writing a Stack class. I'd probably start off with

Re: [rspec-users] Preconditions

2007-09-08 Thread David Chelimsky
On 9/8/07, Pat Maddox [EMAIL PROTECTED] wrote: On 9/8/07, Wincent Colaiuta [EMAIL PROTECTED] wrote: El 8/9/2007, a las 2:15, Pat Maddox escribió: * Descriptions should be broken up based on the required fixture. I don't split them up until I actually have to. For example, if I'm

[rspec-users] why no newlines in failure messages?

2007-09-08 Thread Jeremy Stell-Smith
Instead of : expected ul\n lired/li\n liblue/li\n/ul, got ul\n lired/li\nliblue/li\n /ul (using ==) could we make rspec exceptions look more like : expected ul\n lired/li\n liblue/li\n/ul, got ul\n lired/li\nliblue/li\n /ul (using ==) or if that is too hard, even :

Re: [rspec-users] why no newlines in failure messages?

2007-09-08 Thread David Chelimsky
On 9/8/07, Jeremy Stell-Smith [EMAIL PROTECTED] wrote: Instead of : expected ul\n lired/li\n liblue/li\n/ul, got ul\n lired/li\nliblue/li\n /ul (using ==) could we make rspec exceptions look more like : expected ul\n lired/li\n liblue/li\n/ul, got ul\n lired/li\n

Re: [rspec-users] template.expects_render?

2007-09-08 Thread David Chelimsky
On 9/8/07, Leslie Freeman [EMAIL PROTECTED] wrote: Hi All, I'm trying to make use of template.expects_render, is outlined in David's post(http://blog.davidchelimsky.net/articles/2007/06/28/ template-expects_render). I get an undefined method error on expects_render. I made sure I had the

Re: [rspec-users] Rake tasks getting in the way of edge (uses gem instead)

2007-09-08 Thread Scott Taylor
On Sep 4, 2007, at 3:55 PM, Pat Maddox wrote: So I'd been running gem releases of rspec for the past several months, and I installed edge rspec so that I can use Story Runner. I'm running into a problem because I've got a couple rake tasks that reference spec/rake/raketask. If I try to run

Re: [rspec-users] template.expects_render?

2007-09-08 Thread Leslie Freeman
Ack. The devil is in typing errors. I had been trying expets_render (with an s), don't know how I got should_render in here. At any rate, expect_render does work. Sorry for the lame question, thanks for the quick reply. :) Leslie On Sep 8, 2007, at 2:11 PM, David Chelimsky wrote: On

Re: [rspec-users] Failure Messages in RSpec + inline debugging of a spec

2007-09-08 Thread Scott Taylor
On Sep 5, 2007, at 4:25 AM, Wincent Colaiuta wrote: El 4/9/2007, a las 22:51, Geoffrey Wiseman escribió: Using this as an example, if a new validation rule is added, this test will fail without indicating /why/. Sure, I can get that answer in other ways, but I'd hate to discover things

Re: [rspec-users] Rspec Caveman questions.

2007-09-08 Thread Scott Taylor
On Sep 5, 2007, at 3:49 PM, sudara wrote: Hello! I'm just a caveman with some caveman questions. I've been parsing Rspec for quite a while, and I'm writing my first series of specs. My initial impressions are Verbose, but understandable. Helpful and intuitive, but so much to

Re: [rspec-users] fixtures in before(:all)

2007-09-08 Thread Scott Taylor
On Sep 7, 2007, at 3:31 PM, Geoffrey Wiseman wrote: I was planning on using a fixture within a description that didn't modify the fixture, so I put it in a before(:all) block: describe Customer, xml do fixtures :customers before(:all) do one = customers(:one) end # ...

Re: [rspec-users] fixtures in before(:all)

2007-09-08 Thread aslak hellesoy
On 9/8/07, Scott Taylor [EMAIL PROTECTED] wrote: On Sep 7, 2007, at 3:31 PM, Geoffrey Wiseman wrote: I was planning on using a fixture within a description that didn't modify the fixture, so I put it in a before(:all) block: describe Customer, xml do fixtures :customers

[rspec-users] changes to TextMate bundle

2007-09-08 Thread David Chelimsky
Hi all, I got some help from James Edward Gray II on the RSpec TextMate bundle. For those of you who don't know James, he runs the Ruby Quiz and also maintains the official TM bundle. Per a couple of patches from him and some advice that I acted on, many of the shortcuts have changed. The bad

Re: [rspec-users] fixtures in before(:all)

2007-09-08 Thread Scott Taylor
On Sep 8, 2007, at 5:47 PM, aslak hellesoy wrote: On 9/8/07, Scott Taylor [EMAIL PROTECTED] wrote: On Sep 7, 2007, at 3:31 PM, Geoffrey Wiseman wrote: I was planning on using a fixture within a description that didn't modify the fixture, so I put it in a before(:all) block: describe

[rspec-users] Writing specs for scriptaculous helper

2007-09-08 Thread Leslie Freeman
I'm trying to get full specing of my views, which involve calling some Scriptaculous helpers in the views themselves. For instance, I have a div containing a bunch of thumbnails which I'm going to make sortable with sortable_element. I'm trying to figure out a good way to write a spec for

Re: [rspec-users] Preconditions

2007-09-08 Thread Ben Mabey
David Chelimsky wrote: On 9/8/07, Pat Maddox [EMAIL PROTECTED] wrote: On 9/8/07, Wincent Colaiuta [EMAIL PROTECTED] wrote: El 8/9/2007, a las 2:15, Pat Maddox escribió: * Descriptions should be broken up based on the required fixture. I don't split them up until I actually