Skip to content

Instantly share code, notes, and snippets.

@Lordnibbler
Created August 16, 2013 04:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lordnibbler/6247394 to your computer and use it in GitHub Desktop.
Save Lordnibbler/6247394 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe "Locations", js: true do
describe "Dealer locator search returns relevant locations" do
it "should return test location" do
location = FactoryGirl.create(:location)
visit "/store/dealer-locator"
fill_in "search", with: "Castro Valley, CA"
click_on "Search"
within "#map" do
page.should have_content "Area Cycles"
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment