Browse Source

URL naming

pull/134/head
baarkerlounger 4 years ago committed by Paul Robert Lloyd
parent
commit
a96cb8df6e
  1. 2
      config/routes.rb
  2. 10
      spec/features/organisation_spec.rb

2
config/routes.rb

@ -4,7 +4,7 @@ Rails.application.routes.draw do
passwords: "users/passwords",
sessions: "users/sessions",
registrations: "users/registrations"
}
}, path_names: { sign_in: 'sign-in', sign_out: 'sign-out', sign_up: 'invite' }
devise_scope :user do
get "user", to: "users/account#index"

10
spec/features/organisation_spec.rb

@ -26,4 +26,14 @@ RSpec.describe "User Features" do
expect(page).to have_current_path("/organisations/#{org_id}/details")
end
end
context "Organisation users" do
it "users can be added" do
visit("/organisations/#{org_id}")
click_link("Users")
click_link("Invite user")
expect(page).to have_current_path("/users/invite")
expect(page).to have_content("Invite user to submit CORE data")
end
end
end

Loading…
Cancel
Save