Skip to content

Commit

Permalink
restrooms_spec.rb: Fix a test (RefugeRestrooms#608)
Browse files Browse the repository at this point in the history
Background:

The Mission Creek Cafe in San Francisco has been closed for some time.

Google Maps API now resolves "Mission Creek Cafe"
to a coffee shop in Washington state.

Washington is too far away from our stub restroom entries;
No stub restrooms are located near Washington,
so no restroom results are shown on our results page for this search.

The test expects to see a stub restroom entry on the reults page,
but does not see it, and so the test fails.

---

Fix:

search the Maps API for "San Francisco," not "Mission Creek Cafe"

(This returns a lat/long associated with San Francisco not Washington)
  • Loading branch information
DeeDeeG committed Dec 24, 2019
1 parent 297980c commit 3714303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/features/restrooms_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
create(:restroom, :geocoded, name: 'Mission Creek Cafe')

visit root_path
fill_in 'search', with: 'Mission Creek Cafe'
fill_in 'search', with: 'San Francisco'
click_on 'Search'

expect(page).to have_content 'Mission Creek Cafe'
Expand Down

0 comments on commit 3714303

Please sign in to comment.