Rename job to be more inline with other jobs
This commit is contained in:
parent
83bc134998
commit
070816f0a2
@ -1,4 +1,4 @@
|
|||||||
class CalendarScraperJob < ApplicationJob
|
class ScrapeCalendarJob < ApplicationJob
|
||||||
queue_as :default
|
queue_as :default
|
||||||
|
|
||||||
def perform(*args)
|
def perform(*args)
|
||||||
@ -15,6 +15,7 @@ class CalendarScraperJob < ApplicationJob
|
|||||||
|
|
||||||
unit_code = match[0]
|
unit_code = match[0]
|
||||||
short_lecture_title = match[1]
|
short_lecture_title = match[1]
|
||||||
|
start_time = event.dtstart
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -1,6 +1,6 @@
|
|||||||
require "test_helper"
|
require "test_helper"
|
||||||
|
|
||||||
class CalendarScraperJobTest < ActiveJob::TestCase
|
class ScrapeCalendarJobTest < ActiveJob::TestCase
|
||||||
# test "the truth" do
|
# test "the truth" do
|
||||||
# assert true
|
# assert true
|
||||||
# end
|
# end
|
||||||
Loading…
Reference in New Issue
Block a user