jbarnette (owner)

Fork Of

Revisions

gist: 226382 Download_button fork
public
Public Clone URL: git://gist.github.com/226382.git
Embed All Files: show embed
business_search_helpers_test.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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