ruby on rails - RSpec view specs: accessing view helpers -
i'm testing rails (3.2.18) app , i'm having problem referencing view helpers in rspec (2.14.1) view specs.
the view specs fail because views can't access helper methods defined in app/helpers
, nor controller methods have been marked helpers.
i guess can stub way out of this, wondering if can solved simple configuration tweak.
try add together setting spec/spec_helper.rb
configs:
rspec.configure |config| config.include applicationhelper end
ruby-on-rails ruby rspec
No comments:
Post a Comment