Re: [rspec-users] [Rails] Stubbed static methods are bleeding over into other specs and making them fail

2010-07-24 Thread David Chelimsky
On Fri, Jul 23, 2010 at 7:29 PM, Patrick Gannon wrote: >> I just got a chance to try this, and ran into more problems.  Prior to >> trying this, we were running RSpec2 beta 13.  When I changed our Gemfile to >> depend on 'edge' RSpec et al (as you suggested above), I get a very strange >> error wh

Re: [rspec-users] [Rails] Stubbed static methods are bleeding over into other specs and making them fail

2010-07-23 Thread Patrick Gannon
> > I just got a chance to try this, and ran into more problems. Prior to > trying this, we were running RSpec2 beta 13. When I changed our Gemfile to > depend on 'edge' RSpec et al (as you suggested above), I get a very strange > error when I run rake (after doing a 'bundle install'). The same

Re: [rspec-users] [Rails] Stubbed static methods are bleeding over into other specs and making them fail

2010-07-10 Thread David Chelimsky
On Jul 9, 2010, at 7:37 PM, Patrick Gannon wrote: > > On Mon, Jul 5, 2010 at 1:26 PM, David Chelimsky wrote: > I just pushed what I believe to be a fix for this - please try pointing > Gemfile to the git repos again. It should work if you do this with all of > them: > > gem "rspec-rails",

Re: [rspec-users] [Rails] Stubbed static methods are bleeding over into other specs and making them fail

2010-07-09 Thread Patrick Gannon
On Mon, Jul 5, 2010 at 1:26 PM, David Chelimsky wrote: > I just pushed what I believe to be a fix for this - please try pointing > Gemfile to the git repos again. It should work if you do this with all of > them: > > gem "rspec-rails",:git => "git://github.com/rspec/rspec-rails.git" > gem

Re: [rspec-users] [Rails] Stubbed static methods are bleeding over into other specs and making them fail

2010-07-05 Thread David Chelimsky
On Jul 2, 2010, at 7:25 PM, Patrick Gannon wrote: > Hi all, > > I'm having a problem where stubbed static methods aren't properly becoming > "unstubbed". I have tried manually unstubbing them, but it still doesn't > work. > > Spec is as follows: > > it "creates user accounts for unknown

[rspec-users] [Rails] Stubbed static methods are bleeding over into other specs and making them fail

2010-07-02 Thread Patrick Gannon
Hi all, I'm having a problem where stubbed static methods aren't properly becoming "unstubbed". I have tried manually unstubbing them, but it still doesn't work. Spec is as follows: it "creates user accounts for unknown users" do Notification.stub(:deliver_routed) User.should_re