Browse Source

Update tests

pull/2599/head
Kat 2 years ago
parent
commit
16aba51b30
  1. 2
      spec/services/exports/organisation_export_service_spec.rb
  2. 2
      spec/services/exports/user_export_service_spec.rb

2
spec/services/exports/organisation_export_service_spec.rb

@ -150,7 +150,7 @@ RSpec.describe Exports::OrganisationExportService do
context "when this is a second export (partial)" do
before do
start_time = Time.zone.local(2022, 6, 1)
Export.new(started_at: start_time).save! # this should be organisation export
Export.new(started_at: start_time, collection: "organisations").save! # this should be organisation export
end
it "does not add any entry for the master manifest (no organisations)" do

2
spec/services/exports/user_export_service_spec.rb

@ -150,7 +150,7 @@ RSpec.describe Exports::UserExportService do
context "when this is a second export (partial)" do
before do
start_time = Time.zone.local(2022, 6, 1)
Export.new(started_at: start_time).save! # this should be user export
Export.new(started_at: start_time, collection: "users").save! # this should be user export
end
it "does not add any entry for the master manifest (no users)" do

Loading…
Cancel
Save