Browse Source

fix log component

pull/1684/head
Jack S 3 years ago
parent
commit
94c2ba28fc
  1. 2
      app/components/create_log_actions_component.html.erb
  2. 4
      spec/requests/organisations_controller_spec.rb

2
app/components/create_log_actions_component.html.erb

@ -4,7 +4,7 @@
<%= govuk_button_to create_button_copy, create_button_href, class: "govuk-!-margin-right-6" %>
<% end %>
<% if upload_button_href.present? %>
<%= govuk_button_to upload_button_copy, upload_button_href, secondary: true %>
<%= govuk_button_link_to upload_button_copy, upload_button_href, secondary: true %>
<% end %>
</div>
<% end %>

4
spec/requests/organisations_controller_spec.rb

@ -1469,6 +1469,8 @@ RSpec.describe OrganisationsController, type: :request do
end
describe "POST #data_sharing_agreement" do
let(:organisation) { create(:organisation, :without_dsa) }
context "when not signed in" do
it "redirects to sign in" do
post "/organisations/#{organisation.id}/data-sharing-agreement", headers: headers
@ -1508,7 +1510,7 @@ RSpec.describe OrganisationsController, type: :request do
end
context "when user is dpo" do
let(:user) { create(:user, is_dpo: true) }
let(:user) { create(:user, is_dpo: true, organisation:) }
it "returns redirects to details page" do
post "/organisations/#{organisation.id}/data-sharing-agreement", headers: headers

Loading…
Cancel
Save