summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2013-07-19 14:47:52 -0600
committermo khan <mo@mokhan.ca>2013-07-19 14:47:52 -0600
commitf40d51ac5cd631004912239f3328de27e12dffa4 (patch)
tree4182838d86e36dd6dc5912f00c633f58013d86db /spec/features
parent8d3ccab8c82b679d2547eb4ee0a81e6e2747199a (diff)
add feature specs for signing up on the landing page
Diffstat (limited to 'spec/features')
-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