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_list_sanitizer%27-tp20564496p20564496.html Sent from the rspec-users mailing list archive at Nabble.com.
David Chelimsky
2008-Nov-18 18:02 UTC
[rspec-users] undefined method `white_list_sanitizer''
On Tue, Nov 18, 2008 at 11:36 AM, Matt McNeil <nabble at 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'' forThis 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> 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_list_sanitizer%27-tp20564496p20564496.html > Sent from the rspec-users mailing list archive at Nabble.com. > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >