diff --git a/app/views/organisations/users.html.erb b/app/views/organisations/users.html.erb
index e1b87dc1f..0a6328f01 100644
--- a/app/views/organisations/users.html.erb
+++ b/app/views/organisations/users.html.erb
@@ -3,7 +3,7 @@
<%= "Users" %>
<% end %>
-<%= govuk_button_link_to "Invite user", new_user_registration_path, html: { "data-turbo" => "false" , method: :get } %>
+<%= govuk_button_link_to "Invite user", new_user_registration_path, html: { "data-turbo" => "false", method: :get } %>
<%= govuk_table do |table| %>
<%= table.head do |head| %>
<%= head.row do |row|
diff --git a/spec/requests/organisations_controller_spec.rb b/spec/requests/organisations_controller_spec.rb
index 3239dafbf..cd07845ac 100644
--- a/spec/requests/organisations_controller_spec.rb
+++ b/spec/requests/organisations_controller_spec.rb
@@ -4,6 +4,7 @@ RSpec.describe OrganisationsController, type: :request do
let(:user) { FactoryBot.create(:user) }
let(:organisation) { user.organisation }
let(:headers) { { "Accept" => "text/html" } }
+ let(:page) { Capybara::Node::Simple.new(response.body) }
context "details tab" do
before do
@@ -40,9 +41,7 @@ RSpec.describe OrganisationsController, type: :request do
end
it "shows a new user button" do
- expected_html = "