Forum: RSpec undefined method `white_list_sanitizer'

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9a3eed0654ca966ac84d5baeaa2fbed3?d=identicon&s=25 Matt McNeil (Guest)
on 2008-11-18 18:36
(Received via mailing list)
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:in `h'
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-%60white_li...
Sent from the rspec-users mailing list archive at Nabble.com.
5d38ab152e1e3e219512a9859fcd93af?d=identicon&s=25 David Chelimsky (Guest)
on 2008-11-18 19:03
(Received via mailing list)
On Tue, Nov 18, 2008 at 11:36 AM, Matt McNeil <nabble@mattmcneil.org>
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/a37751b8...

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 topic is locked and can not be replied to.