Re: [rspec-users] Aspects in RSpec 1.0.5

2007-07-02 Thread Ashley Moran
On 27 Jun 2007, at 16:57, David Chelimsky wrote: > There's an RFE for this in the tracker - wanna contribute this as a > patch? If you do, please use "facet" instead of "aspect". I had a quick look at this - didn't get much chance because I had work to do too. I had a scan through the specs

Re: [rspec-users] Aspects in RSpec 1.0.5

2007-07-02 Thread David Chelimsky
On 7/2/07, Ashley Moran <[EMAIL PROTECTED]> wrote: > > On 27 Jun 2007, at 16:57, David Chelimsky wrote: > > > There's an RFE for this in the tracker - wanna contribute this as a > > patch? If you do, please use "facet" instead of "aspect". > > > I had a quick look at this - didn't get much chance b

[rspec-users] Testing route globbing and limitations of get()

2007-07-02 Thread David Leal
Hi everyone, I'm new to rails and also to rspec, but I tried to do my homework. To answer my questions, I searched this list's archives, the Rails API, and Google, to no avail. Therefor, I'd be grateful if someone could point me in the right directions: 1) There doesn't seem to be a counterpart

Re: [rspec-users] Testing route globbing and limitations of get()

2007-07-02 Thread David Chelimsky
On 7/2/07, David Leal <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I'm new to rails and also to rspec, but I tried to do my homework. To answer > my questions, I searched this list's archives, the Rails API, and Google, to > no avail. Therefor, I'd be grateful if someone could point me in the righ

Re: [rspec-users] Testing route globbing and limitations of get()

2007-07-02 Thread David Leal
Hi David, thanks for your reply. Regarding the last topic below, there's something about which I'm not quite clear: The catchall method that I'm trying to test works by getting a path from the request object passed to it (during testing it's a TestRequest object). If I understand correctly, ther

Re: [rspec-users] Testing route globbing and limitations of get()

2007-07-02 Thread David Chelimsky
On 7/2/07, David Leal <[EMAIL PROTECTED]> wrote: > Hi David, thanks for your reply. > > Regarding the last topic below, there's something about which I'm not quite > clear: > > The catchall method that I'm trying to test works by getting a path from the > request object passed to it (during testing

Re: [rspec-users] Testing route globbing and limitations of get()

2007-07-02 Thread David Leal
Thanks for your answers, David. I'll investigate. It's still a bit hard for me to understand where are the boundaries between rails tests and rspec. Cheers, David On 7/2/07, David Chelimsky <[EMAIL PROTECTED]> wrote: On 7/2/07, David Leal <[EMAIL PROTECTED]> wrote: > Hi David, thanks for your

Re: [rspec-users] Testing route globbing and limitations of get()

2007-07-02 Thread David Chelimsky
On 7/2/07, David Leal <[EMAIL PROTECTED]> wrote: > Thanks for your answers, David. I'll investigate. It's still a bit hard for > me to understand where are the boundaries between rails tests and rspec. Spec::Rails, RSpec's rails plugin, wraps test/unit, so: Model Examples work like Rails unit tes

Re: [rspec-users] Testing route globbing and limitations of get()

2007-07-02 Thread David Leal
I see. It's simple. Sorry that I missed that. I looked at Mephisto's tests to see how they do it. Turns out you need to call get :action, :path => ["all", "path", "components"] # for /all/path/components Again, thanks for the help, David. Cheers, David On 7/2/07, David Chelimsky <[EMAIL PROT