summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/features/home_spec.rb13
-rw-r--r--spec/features/landing_page_spec.rb15
2 files changed, 15 insertions, 13 deletions
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