diff --git a/lib/will_paginate/view_helpers.rb b/lib/will_paginate/view_helpers.rb
index <HASH>..<HASH> 100644
--- a/lib/will_paginate/view_helpers.rb
+++ b/lib/will_paginate/view_helpers.rb
@@ -140,7 +140,7 @@ module WillPaginate
     end
 
     def self.total_pages_for_collection(collection) #:nodoc:
-      if collection.respond_to? :page_count and !collection.respond_to? :total_pages
+      if collection.respond_to?('page_count') and !collection.respond_to?('total_pages')
         WillPaginate::Deprecation.warn <<-MSG
           You are using a paginated collection of class #{collection.class.name}
           which conforms to the old API of WillPaginate::Collection by using
use strings in "respond_to?" calls to work around a bug in acts_as_ferret stable (ugh)