require "spec_helper" describe "landing page" do it "should display the default home page" do visit '/' expect(page).to have_content "Parley" end it "should let you sign up to the mailing list" do visit('/') first(:css, '#sign_up_email').set "admin@madebyuppercut.com" first(:css, 'input[type="submit"]').click expect(page).to have_content("Thanks for signing up with Parley. We’ll keep you informed with any important updates and, of course, the official launch date.") end it "should not let you sign up without an email address" do visit('/') first(:css, 'input[type="submit"]').click expect(page).to have_content("Just the HR performance management features you want.") end end