[rspec-users] my helper stubs aren't working (rspec2, rails3)

2010-12-31 Thread Kevin Lochner
My helper tests broke when I upgraded to rails3/rspec2. I don't seem to be able to stub out methods in my helper tests. Anyone know what's going on here? #users_helper_spec.rb describe UsersHelper do describe "the helper" do it "should stub" do helper.stub(:foobar_method).and_return(

Re: [rspec-users] my helper stubs aren't working (rspec2, rails3)

2010-12-31 Thread Kevin Lochner
David Chelimsky wrote in post #971734: > > Can you post your Gemfile and spec/spec_helper.rb files? I'm guessing > there's a configuration problem of some sort. > > Cheers, > David David - thanks for following up so quickly, and happy new year. #Gemfile: source 'http://rubygems.org' gem 'rails'

Re: [rspec-users] my helper stubs aren't working (rspec2, rails3)

2011-01-01 Thread Kevin Lochner
David Chelimsky wrote in post #971793: > You only need ^^ rspec-rails here. It requires rspec, which requires > rspec-mocks. I'd actually recommend using this format: > > gem "rspec-rails", "~> 2.3" > > This will accept updates up to, but not including 3.0. This means > you'll get bug fixes and/

Re: [rspec-users] my helper stubs aren't working (rspec2, rails3)

2011-01-01 Thread Kevin Lochner
Kevin Lochner wrote in post #971805: > David Chelimsky wrote in post #971793: > > Unfortunately that worked: > >ThingsHelper > supports stubs > > . . . so there's something weird going on with my app. It seems that I left out a critical detail :) I was usi