Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
starswan committed Nov 29, 2024
1 parent 929f94d commit fe0c368
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/jobs/send_daily_alert_email_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
create(:vacancy, :published_slugged, contact_number: "4", ect_status: :ect_suitable, job_roles: %w[headteacher teacher], subjects: %w[English], phases: %w[secondary], working_patterns: %w[full_time])
create(:vacancy, :published_slugged, ect_status: nil, job_roles: %w[headteacher teacher], subjects: %w[English], phases: %w[secondary], working_patterns: %w[full_time])
end

let(:subscription) { create(:subscription, :ect_suitable, frequency: :daily) }
let(:ect_job) { Vacancy.find_by!(contact_number: "4") }

Expand Down Expand Up @@ -118,6 +119,7 @@
before do
create(:vacancy, :published_slugged, contact_number: "6", job_roles: %w[headteacher], phases: %w[primary], working_patterns: %w[full_time])
end

let(:subscription) { create(:subscription, phases: %w[primary], frequency: :daily) }
let(:primary_job) { Vacancy.find_by!(contact_number: "6") }

Expand All @@ -131,6 +133,7 @@
before do
create(:vacancy, :published_slugged, contact_number: "7", job_roles: %w[headteacher], phases: %w[secondary], working_patterns: %w[part_time])
end

let(:subscription) { create(:subscription, working_patterns: %w[part_time], frequency: :daily) }
let(:part_time_job) { Vacancy.find_by!(contact_number: "7") }

Expand All @@ -144,6 +147,7 @@
before do
create(:vacancy, :published_slugged, contact_number: "8", organisations: [new_org], job_roles: %w[headteacher], phases: %w[secondary], working_patterns: %w[full_time])
end

let(:new_org) { create(:school) }
let(:new_org_job) { Vacancy.find_by!(contact_number: "8") }
let(:subscription) { create(:subscription, organisation_slug: new_org.slug, frequency: :daily) }
Expand Down

0 comments on commit fe0c368

Please sign in to comment.