[rspec-devel] [ rspec-Bugs-7038 ] View specs can't use helpers defined with helper_method
noreply at rubyforge.org
noreply at rubyforge.org
Mon Dec 4 07:47:53 EST 2006
Bugs item #7038, was opened at 2006-12-04 05:47
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=7038&group_id=797
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Pat Maddox (pergesu)
Assigned to: Nobody (None)
Summary: View specs can't use helpers defined with helper_method
Initial Comment:
Assuming you have this controller:
class FooController < ApplicationController
helper_method :foo
def foo; end
end
For a view spec where the view calls the foo helper method, you get an undefined method error.
undefined method `foo' for #<#<Class:0x298ecf8>:0x26f71c0>
edge rails, rspec 0.7.4
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=7038&group_id=797
More information about the rspec-devel
mailing list