From cf4495e17cf6434dd77dd1a73389a4f66163697a Mon Sep 17 00:00:00 2001 From: rgarcia Date: Mon, 17 Aug 2015 19:25:40 +0200 Subject: [PATCH] adds spec for error messages on registration signup [#99] --- spec/features/organizations_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/features/organizations_spec.rb b/spec/features/organizations_spec.rb index 00ec6c6f9c1..dcbaaab513a 100644 --- a/spec/features/organizations_spec.rb +++ b/spec/features/organizations_spec.rb @@ -22,6 +22,14 @@ expect(user.organization).to_not be_verified end + scenario 'Errors on create' do + visit new_organization_registration_path + + click_button 'Sign up' + + expect(page).to have_content error_message + end + scenario 'Shared links' do visit new_user_registration_path expect(page).to have_link "Sign up as an organization"