Permalink
Browse files

use syms instead

  • Loading branch information...
joshbuddy committed Jul 30, 2011
1 parent 067e761 commit 7f3beb14227e2db38a8519843a31f4b05f366fda
Showing with 12 additions and 12 deletions.
  1. +12 −12 test/test_misc.rb
View
@@ -59,17 +59,17 @@ def test_regex_generation
end
def test_public_interface
- methods = HttpRouter.public_instance_methods
- assert methods.include?('url_mount')
- assert methods.include?('url_mount=')
- assert methods.include?('call')
- assert methods.include?('recognize')
- assert methods.include?('url')
- assert methods.include?('pass_on_response')
- assert methods.include?('ignore_trailing_slash?')
- assert methods.include?('redirect_trailing_slash?')
- assert methods.include?('process_destination_path')
- assert methods.include?('rewrite_partial_path_info')
- assert methods.include?('rewrite_path_info')
+ methods = HttpRouter.public_instance_methods.map(&:to_sym)
+ assert methods.include?(:url_mount)
+ assert methods.include?(:url_mount=)
+ assert methods.include?(:call)
+ assert methods.include?(:recognize)
+ assert methods.include?(:url)
+ assert methods.include?(:pass_on_response)
+ assert methods.include?(:ignore_trailing_slash?)
+ assert methods.include?(:redirect_trailing_slash?)
+ assert methods.include?(:process_destination_path)
+ assert methods.include?(:rewrite_partial_path_info)
+ assert methods.include?(:rewrite_partial_path_info)
end
end

0 comments on commit 7f3beb1

Please sign in to comment.