Skip to content

Instantly share code, notes, and snippets.

@eprothro
Last active December 18, 2015 02:59
Show Gist options
  • Save eprothro/0406fc3f1ab683881f76 to your computer and use it in GitHub Desktop.
Save eprothro/0406fc3f1ab683881f76 to your computer and use it in GitHub Desktop.
require 'spec_helper'
include UsersSpecHelper
include VehiclesSpecHelper
describe "Showroom", js: true do
context "without being logged in" do
describe "adding a vehicle from a search result vehicle card" do
# before :all do
# ensure_vehicle(vin: '3GYFK66N16G100956', company: 'WH1')
# visit search_path(q: "buick")
# # click_link "Add to Showroom"
# end
it "drops open the showroom" do
puts Capybara.current_driver
screenshot_and_save_page
find("#showroom").should be_visible
end
# it "shows the registration form" do
# find("#showroom-list-wrap .showroom-register-modal").should be_visible
# page.should have_content "Just enter your email here:"
# page.should have_content "Sign me up"
# end
end
end
context "with a logged in user" do
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment