Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jbarnette/226382 to your computer and use it in GitHub Desktop.
Save jbarnette/226382 to your computer and use it in GitHub Desktop.
require "test_helper"
require "action_view/test_case"
class TestBusinessSearchHelpers < ActionView::TestCase
include BusinessSearchHelper
def test_format_address
{
"Foo Goo 123" => "Foo Goo 123",
"Blah Ste&nbsp;345" => "Blah Ste 345",
# et cetera
}.each do |input, expected|
assert_equal expected, format_address(input)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment