[rspec-users] [Rails] Can't get controller test working with RSpec 2 and edge Rails 3

2010-06-25 Thread Patrick Gannon
Not sure if this is a Rails 3 issue or an RSpec 2 issue, but I can't seem to get a standard controller test working - it seems that the 'get' method can't be found. I have a controller test that looks like this (named "discrepancies_controller_spec.rb" in spec/controllers directory): require 'spe

[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

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-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