summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2013-07-19 14:49:50 -0600
committermo khan <mo@mokhan.ca>2013-07-19 14:49:50 -0600
commit1762497db42118c77c7737522fe931cd91bb4af8 (patch)
tree50a45eae9f4d937afb3485e614574cb7cb80a0c0 /spec
parentf40d51ac5cd631004912239f3328de27e12dffa4 (diff)
add feature spec to ensure you cant sign up without an email address
Diffstat (limited to 'spec')
-rw-r--r--spec/features/landing_page_spec.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/features/landing_page_spec.rb b/spec/features/landing_page_spec.rb
index b59e0cf..a74ede2 100644
--- a/spec/features/landing_page_spec.rb
+++ b/spec/features/landing_page_spec.rb
@@ -6,10 +6,16 @@ describe "landing page" do
expect(page).to have_content "Parley"
end
- it "should let you sign up to the mailing list", js: true do
+ it "should let you sign up to the mailing list" 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
+
+ it "should not let you sign up without an email address" do
+ visit('/')
+ click_button('Sign up now')
+ expect(page).to have_content("Just the HR performance management features you want.")
+ end
end