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(
On Dec 31, 2010, at 1:48 PM, Kevin Lochner wrote:
> 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
>
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'