Created
August 16, 2013 04:46
-
-
Save Lordnibbler/6247394 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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