Browse Source

New user path

pull/134/head
baarkerlounger 4 years ago committed by Paul Robert Lloyd
parent
commit
e47c12e473
  1. 2
      app/views/organisations/users.html.erb
  2. 2
      app/views/users/new.html.erb
  3. 2
      spec/features/organisation_spec.rb

2
app/views/organisations/users.html.erb

@ -3,7 +3,7 @@
<%= "Users" %>
<% end %>
<%= govuk_button_link_to "Invite user", users_invite_organisation_path(@organisation), html: { method: :get } %>
<%= govuk_button_link_to "Invite user", new_user_path, html: { method: :get } %>
<%= govuk_table do |table| %>
<%= table.head do |head| %>
<%= head.row do |row|

2
app/views/users/new.html.erb

@ -5,7 +5,7 @@
) %>
<% end %>
<%= form_for(@resource, as: @resource_name, url: account_create_path(), html: { method: :post }) do |f| %>
<%= form_for(@resource, as: :user, html: { method: :post }) do |f| %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= f.govuk_error_summary %>

2
spec/features/organisation_spec.rb

@ -32,7 +32,7 @@ RSpec.describe "User Features" do
visit("/organisations/#{org_id}")
click_link("Users")
click_link("Invite user")
expect(page).to have_current_path("/organisations/#{org_id}/users/invite")
expect(page).to have_current_path("/users/new")
expect(page).to have_content("Invite user to submit CORE data")
end
end

Loading…
Cancel
Save