From f40d51ac5cd631004912239f3328de27e12dffa4 Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 19 Jul 2013 14:47:52 -0600 Subject: add feature specs for signing up on the landing page --- spec/features/home_spec.rb | 13 ------------- spec/features/landing_page_spec.rb | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 13 deletions(-) delete mode 100644 spec/features/home_spec.rb create mode 100644 spec/features/landing_page_spec.rb (limited to 'spec') diff --git a/spec/features/home_spec.rb b/spec/features/home_spec.rb deleted file mode 100644 index ba62242..0000000 --- a/spec/features/home_spec.rb +++ /dev/null @@ -1,13 +0,0 @@ -require "spec_helper" - -describe "home" do - it "should display the default home page" do - visit '/' - expect(page).to have_content "Hello Ruby Universe!" - end - - it "should also work with the js test driver", js: true do - visit '/' - expect(page).to have_content "Hello Ruby Universe!" - end -end diff --git a/spec/features/landing_page_spec.rb b/spec/features/landing_page_spec.rb new file mode 100644 index 0000000..b59e0cf --- /dev/null +++ b/spec/features/landing_page_spec.rb @@ -0,0 +1,15 @@ +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", js: true do + visit('/') + fill_in('sign_up_email', with: 'admin@madebyuppercut.com') + click_button('Sign up now') + 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 +end -- cgit v1.2.3