[rspec-users] Renaming RailsExample to RailsExampleGroup

2007-11-25 Thread Brian Takita
Fyi, I made the following renames: * RailsExample -> RailsExampleGroup * FunctionalExample -> FunctionalExampleGroup * ControllerExample -> ControllerExampleGroup * ViewExample -> ViewExampleGroup * HelperExample -> HelperExampleGroup * ModelExample -> ModelExampleGroup This was done to keep the n

Re: [rspec-users] 'it' duplicate example: BUG

2007-11-25 Thread Scott Taylor
On Nov 25, 2007, at 7:35 AM, David Chelimsky wrote: > On Nov 24, 2007 7:47 PM, Scott Taylor > <[EMAIL PROTECTED]> wrote: >> >> On Nov 21, 2007, at 3:17 PM, aslak hellesoy wrote: >> >>> On 11/21/07, Chad Humphries <[EMAIL PROTECTED]> wrote: One of the recent trunk changesets modified the de

Re: [rspec-users] namespaced controllers

2007-11-25 Thread Scott Taylor
> > Figured out how to reproduce it. It depends on load order, I guess. > > Given the files: > spec/controllers/foo_controller_spec.rb > spec/controllers/admin/foo_controller_spec.rb > > The specs do nothing but hit the FooController#show and > Admin::FooController#index actions and expect the

Re: [rspec-users] Rails sessions in plain text stories

2007-11-25 Thread David Chelimsky
On Nov 25, 2007 11:41 AM, Daniel Tenner <[EMAIL PROTECTED]> wrote: > Ok, maybe I'm being particularly thick, but I've been trying to find > the solution to this for a couple of hours now and I just can't seem > to be able to do it... > > I'm trying to write a step as such: > >Given("user $email

Re: [rspec-users] Rails sessions in plain text stories

2007-11-25 Thread Jarkko Laine
On 25.11.2007, at 19.41, Daniel Tenner wrote: > ... What am I doing wrong? > > I've for the time being gotten around this problem (thanks to pd's > suggestion on #rspec) by making the spec run through the sign up and > email confirmation process, which does sign in the user into the > session... bu

[rspec-users] Rails sessions in plain text stories

2007-11-25 Thread Daniel Tenner
Ok, maybe I'm being particularly thick, but I've been trying to find the solution to this for a couple of hours now and I just can't seem to be able to do it... I'm trying to write a step as such: Given("user $email is logged in") do |email| user = User.find_by_email(email) sessi

Re: [rspec-users] namespaced controllers

2007-11-25 Thread Kyle Hargraves
On Nov 25, 2007 9:23 AM, Kyle Hargraves <[EMAIL PROTECTED]> wrote: > On Nov 23, 2007 11:53 PM, Scott Taylor <[EMAIL PROTECTED]> wrote: > > I got an "unknown action foo" error message (wasn't getting it before > > today - running on trunk). > > > > > > Scott > > Can you reproduce it reliably? > > I

Re: [rspec-users] namespaced controllers

2007-11-25 Thread Kyle Hargraves
On Nov 23, 2007 11:53 PM, Scott Taylor <[EMAIL PROTECTED]> wrote: > I got an "unknown action foo" error message (wasn't getting it before > today - running on trunk). > > > Scott Can you reproduce it reliably? I had an Admin::SomeController controller, and the specs were passing fine. I went to a

Re: [rspec-users] 'it' duplicate example: BUG

2007-11-25 Thread David Chelimsky
On Nov 21, 2007 2:17 PM, aslak hellesoy <[EMAIL PROTECTED]> wrote: > Then I remembered that Brian a few days ago did a change to the > internals - every it block now creates a method with the same name as > the description, and later calls that method to run the example. FYI - this ended up causin

Re: [rspec-users] 'it' duplicate example: BUG

2007-11-25 Thread David Chelimsky
On Nov 24, 2007 7:47 PM, Scott Taylor <[EMAIL PROTECTED]> wrote: > > On Nov 21, 2007, at 3:17 PM, aslak hellesoy wrote: > > > On 11/21/07, Chad Humphries <[EMAIL PROTECTED]> wrote: > >> One of the recent trunk changesets modified the default behaviour to > >> fail fast if duplicate examples are det