Undefined method `white_list_sanitizer'

Hi there,
After upgrading to the latest Rails RC (2.2.0) and rspec 1.1.11, I’m
getting
the following error in my specs (but not in the application itself):

NoMethodError in ‘ApplicationHelper#truncate_text truncates text to 270
characters’
undefined method white_list_sanitizer' for Spec::Rails::Example::HelperExampleGroup::Subclass_2::Subclass_3:Class app/helpers/application_helper.rb:35:inh’
app/helpers/application_helper.rb:39:in `truncate_text’
spec/helpers/application_helper_spec.rb:40:
spec/helpers/discussions_helper_spec.rb:6:

Any ideas what may have changed/what’s needed to fix this?

Thanks much,
Matt

View this message in context:
http://www.nabble.com/undefined-method-`white_list_sanitizer'-tp20564496p20564496.html
Sent from the rspec-users mailing list archive at Nabble.com.

On Tue, Nov 18, 2008 at 11:36 AM, Matt McNeil [email protected]
wrote:

Hi there,
After upgrading to the latest Rails RC (2.2.0) and rspec 1.1.11, I’m getting
the following error in my specs (but not in the application itself):

NoMethodError in ‘ApplicationHelper#truncate_text truncates text to 270
characters’
undefined method `white_list_sanitizer’ for

This may be related to a bug that was fixed (in git) after the 1.1.11
release:

http://rspec.lighthouseapp.com/projects/5645/tickets/600

http://github.com/dchelimsky/rspec/commit/a37751b8c7a1dc33bc104725845845f032772e24

Give this a go and see if it solves your problem (assumes you have
hoe installed):

git clone git://github.com/dchelimsky/rspec.git
cd rspec
rake gem
rake install_gem

Thanks,
David

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs