Modifies devise shared link to include organisations sometimes

This commit is contained in:
kikito
2015-08-17 01:01:16 +02:00
parent 9af1f2f4a9
commit e84873d875
2 changed files with 23 additions and 3 deletions

View File

@@ -29,4 +29,17 @@ feature 'Organizations' do
expect(page).to have_content "Password can't be blank"
expect(page).to have_content "Organization name can't be blank"
end
scenario 'Shared links' do
visit new_user_registration_path
expect(page).to have_link "Sign up as an organization"
visit new_organization_registration_path
expect(page).to have_link "Sign up"
visit new_user_session_path
expect(page).to have_link "Sign up"
expect(page).to_not have_link "Sign up as an organization"
end
end