|
|
@ -2,9 +2,6 @@ require "rails_helper" |
|
|
|
require "rake" |
|
|
|
require "rake" |
|
|
|
|
|
|
|
|
|
|
|
RSpec.describe "correct_addresses" do |
|
|
|
RSpec.describe "correct_addresses" do |
|
|
|
describe ":send_missing_addresses_lettings_csv", type: :task do |
|
|
|
|
|
|
|
subject(:task) { Rake::Task["correct_addresses:send_missing_addresses_lettings_csv"] } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
around do |example| |
|
|
|
around do |example| |
|
|
|
Timecop.freeze(Time.zone.local(2023, 10, 10)) do |
|
|
|
Timecop.freeze(Time.zone.local(2023, 10, 10)) do |
|
|
|
Singleton.__init__(FormHandler) |
|
|
|
Singleton.__init__(FormHandler) |
|
|
@ -12,6 +9,9 @@ RSpec.describe "correct_addresses" do |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
describe ":send_missing_addresses_lettings_csv", type: :task do |
|
|
|
|
|
|
|
subject(:task) { Rake::Task["correct_addresses:send_missing_addresses_lettings_csv"] } |
|
|
|
|
|
|
|
|
|
|
|
before do |
|
|
|
before do |
|
|
|
organisation.users.destroy_all |
|
|
|
organisation.users.destroy_all |
|
|
|
Rake.application.rake_require("tasks/send_missing_addresses_csv") |
|
|
|
Rake.application.rake_require("tasks/send_missing_addresses_csv") |
|
|
|