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.
on 2008-11-18 18:36
on 2008-11-18 19:03
On Tue, Nov 18, 2008 at 11:36 AM, Matt McNeil <firstname.lastname@example.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